From 3a754133393ace84bf4a24398e5c7d0ee376cc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Tue, 19 Mar 2024 10:35:51 +0100 Subject: [PATCH] Regenerated files with last fastddsgen after rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- test/blackbox/CMakeLists.txt | 6 +- test/blackbox/types/UnboundedHelloWorld.cxx | 168 - ...edHelloWorld.h => UnboundedHelloWorld.hpp} | 124 +- .../types/UnboundedHelloWorldCdrAux.hpp | 4 +- .../types/UnboundedHelloWorldCdrAux.ipp | 2 - .../types/UnboundedHelloWorldPubSubTypes.cxx | 14 +- .../types/UnboundedHelloWorldPubSubTypes.h | 7 +- .../UnboundedHelloWorldTypeObjectSupport.cxx | 248 + .../UnboundedHelloWorldTypeObjectSupport.hpp | 54 + test/blackbox/types/UnboundedHelloWorldv1.cxx | 286 - test/blackbox/types/UnboundedHelloWorldv1.h | 244 - .../types/statistics/monitorservice_types.hpp | 16 - .../statistics/monitorservice_typesCdrAux.hpp | 29 - .../statistics/monitorservice_typesCdrAux.ipp | 410 +- .../monitorservice_typesPubSubTypes.cxx | 57 +- .../monitorservice_typesPubSubTypes.h | 36 +- .../monitorservice_typesTypeObjectSupport.cxx | 12397 ++++++++++++++++ .../monitorservice_typesTypeObjectSupport.hpp | 127 + test/unittest/dynamic_types/idl/Test.hpp | 272 +- .../idl/new_features_4_2TypeObjectSupport.cxx | 6 +- 20 files changed, 13348 insertions(+), 1159 deletions(-) delete mode 100644 test/blackbox/types/UnboundedHelloWorld.cxx rename test/blackbox/types/{UnboundedHelloWorld.h => UnboundedHelloWorld.hpp} (69%) create mode 100644 test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx create mode 100644 test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp delete mode 100644 test/blackbox/types/UnboundedHelloWorldv1.cxx delete mode 100644 test/blackbox/types/UnboundedHelloWorldv1.h create mode 100644 test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx create mode 100644 test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp diff --git a/test/blackbox/CMakeLists.txt b/test/blackbox/CMakeLists.txt index a5f8bb956e9..16dd891f731 100644 --- a/test/blackbox/CMakeLists.txt +++ b/test/blackbox/CMakeLists.txt @@ -69,9 +69,8 @@ set(RTPS_BLACKBOXTESTS_SOURCE ${RTPS_BLACKBOXTESTS_TEST_SOURCE} types/KeyedData1mbTypeObjectSupport.cxx types/FixedSizedPubSubTypes.cxx types/FixedSizedTypeObjectSupport.cxx - types/UnboundedHelloWorld.cxx types/UnboundedHelloWorldPubSubTypes.cxx - types/UnboundedHelloWorldv1.cxx + types/UnboundedHelloWorldTypeObjectSupport.cxx utils/data_generators.cpp utils/lambda_functions.cpp @@ -114,9 +113,8 @@ set(BLACKBOXTESTS_SOURCE ${BLACKBOXTESTS_TEST_SOURCE} types/TestIncludeRegression3361TypeObjectSupport.cxx types/TestRegression3361PubSubTypes.cxx types/TestRegression3361TypeObjectSupport.cxx - types/UnboundedHelloWorld.cxx types/UnboundedHelloWorldPubSubTypes.cxx - types/UnboundedHelloWorldv1.cxx + types/UnboundedHelloWorldTypeObjectSupport.cxx utils/data_generators.cpp utils/lambda_functions.cpp diff --git a/test/blackbox/types/UnboundedHelloWorld.cxx b/test/blackbox/types/UnboundedHelloWorld.cxx deleted file mode 100644 index ce25da81c8c..00000000000 --- a/test/blackbox/types/UnboundedHelloWorld.cxx +++ /dev/null @@ -1,168 +0,0 @@ -// 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 UnboundedHelloWorld.cpp - * This source file contains the implementation of the described types in the IDL file. - * - * This file was generated by the tool fastddsgen. - */ - -#ifdef _WIN32 -// Remove linker warning LNK4221 on Visual Studio -namespace { -char dummy; -} // namespace -#endif // _WIN32 - -#include "UnboundedHelloWorld.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - - - - -UnboundedHelloWorld::UnboundedHelloWorld() -{ -} - -UnboundedHelloWorld::~UnboundedHelloWorld() -{ -} - -UnboundedHelloWorld::UnboundedHelloWorld( - const UnboundedHelloWorld& x) -{ - m_index = x.m_index; - m_message = x.m_message; -} - -UnboundedHelloWorld::UnboundedHelloWorld( - UnboundedHelloWorld&& x) noexcept -{ - m_index = x.m_index; - m_message = std::move(x.m_message); -} - -UnboundedHelloWorld& UnboundedHelloWorld::operator =( - const UnboundedHelloWorld& x) -{ - - m_index = x.m_index; - m_message = x.m_message; - return *this; -} - -UnboundedHelloWorld& UnboundedHelloWorld::operator =( - UnboundedHelloWorld&& x) noexcept -{ - - m_index = x.m_index; - m_message = std::move(x.m_message); - return *this; -} - -bool UnboundedHelloWorld::operator ==( - const UnboundedHelloWorld& x) const -{ - return (m_index == x.m_index && - m_message == x.m_message); -} - -bool UnboundedHelloWorld::operator !=( - const UnboundedHelloWorld& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ -void UnboundedHelloWorld::index( - uint16_t _index) -{ - m_index = _index; -} - -/*! - * @brief This function returns the value of member index - * @return Value of member index - */ -uint16_t UnboundedHelloWorld::index() const -{ - return m_index; -} - -/*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ -uint16_t& UnboundedHelloWorld::index() -{ - return m_index; -} - - -/*! - * @brief This function copies the value in member message - * @param _message New value to be copied in member message - */ -void UnboundedHelloWorld::message( - const std::string& _message) -{ - m_message = _message; -} - -/*! - * @brief This function moves the value in member message - * @param _message New value to be moved in member message - */ -void UnboundedHelloWorld::message( - std::string&& _message) -{ - m_message = std::move(_message); -} - -/*! - * @brief This function returns a constant reference to member message - * @return Constant reference to member message - */ -const std::string& UnboundedHelloWorld::message() const -{ - return m_message; -} - -/*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ -std::string& UnboundedHelloWorld::message() -{ - return m_message; -} - - -// Include auxiliary functions like for serializing/deserializing. -#include "UnboundedHelloWorldCdrAux.ipp" - -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/test/blackbox/types/UnboundedHelloWorld.h b/test/blackbox/types/UnboundedHelloWorld.hpp similarity index 69% rename from test/blackbox/types/UnboundedHelloWorld.h rename to test/blackbox/types/UnboundedHelloWorld.hpp index 1624eb1c4bd..431ecef78dc 100644 --- a/test/blackbox/types/UnboundedHelloWorld.h +++ b/test/blackbox/types/UnboundedHelloWorld.hpp @@ -13,32 +13,19 @@ // limitations under the License. /*! - * @file UnboundedHelloWorld.h + * @file UnboundedHelloWorld.hpp * This header file contains the declaration of the described types in the IDL file. * * This file was generated by the tool fastddsgen. */ -#include -#include "UnboundedHelloWorldv1.h" +#ifndef _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_HPP_ +#define _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_HPP_ -#if FASTCDR_VERSION_MAJOR > 1 - -#ifndef _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ -#define _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ - -#include -#include #include -#include #include -#include - +#include #include -#include -#include - - #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -64,17 +51,6 @@ #define UNBOUNDEDHELLOWORLD_DllAPI #endif // _WIN32 -namespace eprosima { -namespace fastcdr { -class Cdr; -class CdrSizeCalculator; -} // namespace fastcdr -} // namespace eprosima - - - - - /*! * @brief This class represents the structure UnboundedHelloWorld defined by the user in the IDL file. * @ingroup UnboundedHelloWorld @@ -86,73 +62,117 @@ class UnboundedHelloWorld /*! * @brief Default constructor. */ - eProsima_user_DllExport UnboundedHelloWorld(); + eProsima_user_DllExport UnboundedHelloWorld() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~UnboundedHelloWorld(); + eProsima_user_DllExport ~UnboundedHelloWorld() + { + } /*! * @brief Copy constructor. * @param x Reference to the object UnboundedHelloWorld that will be copied. */ eProsima_user_DllExport UnboundedHelloWorld( - const UnboundedHelloWorld& x); + const UnboundedHelloWorld& x) + { + m_index = x.m_index; + + m_message = x.m_message; + + } /*! * @brief Move constructor. * @param x Reference to the object UnboundedHelloWorld that will be copied. */ eProsima_user_DllExport UnboundedHelloWorld( - UnboundedHelloWorld&& x) noexcept; + UnboundedHelloWorld&& x) noexcept + { + m_index = x.m_index; + m_message = std::move(x.m_message); + } /*! * @brief Copy assignment. * @param x Reference to the object UnboundedHelloWorld that will be copied. */ eProsima_user_DllExport UnboundedHelloWorld& operator =( - const UnboundedHelloWorld& x); + const UnboundedHelloWorld& x) + { + + m_index = x.m_index; + + m_message = x.m_message; + + return *this; + } /*! * @brief Move assignment. * @param x Reference to the object UnboundedHelloWorld that will be copied. */ eProsima_user_DllExport UnboundedHelloWorld& operator =( - UnboundedHelloWorld&& x) noexcept; + UnboundedHelloWorld&& x) noexcept + { + + m_index = x.m_index; + m_message = std::move(x.m_message); + return *this; + } /*! * @brief Comparison operator. * @param x UnboundedHelloWorld object to compare. */ eProsima_user_DllExport bool operator ==( - const UnboundedHelloWorld& x) const; + const UnboundedHelloWorld& x) const + { + return (m_index == x.m_index && + m_message == x.m_message); + } /*! * @brief Comparison operator. * @param x UnboundedHelloWorld object to compare. */ eProsima_user_DllExport bool operator !=( - const UnboundedHelloWorld& x) const; + const UnboundedHelloWorld& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member index * @param _index New value for member index */ eProsima_user_DllExport void index( - uint16_t _index); + uint16_t _index) + { + m_index = _index; + } /*! * @brief This function returns the value of member index * @return Value of member index */ - eProsima_user_DllExport uint16_t index() const; + eProsima_user_DllExport uint16_t index() const + { + return m_index; + } /*! * @brief This function returns a reference to member index * @return Reference to member index */ - eProsima_user_DllExport uint16_t& index(); + eProsima_user_DllExport uint16_t& index() + { + return m_index; + } /*! @@ -160,26 +180,40 @@ class UnboundedHelloWorld * @param _message New value to be copied in member message */ eProsima_user_DllExport void message( - const std::string& _message); + const std::string& _message) + { + m_message = _message; + } /*! * @brief This function moves the value in member message * @param _message New value to be moved in member message */ eProsima_user_DllExport void message( - std::string&& _message); + std::string&& _message) + { + m_message = std::move(_message); + } /*! * @brief This function returns a constant reference to member message * @return Constant reference to member message */ - eProsima_user_DllExport const std::string& message() const; + eProsima_user_DllExport const std::string& message() const + { + return m_message; + } /*! * @brief This function returns a reference to member message * @return Reference to member message */ - eProsima_user_DllExport std::string& message(); + eProsima_user_DllExport std::string& message() + { + return m_message; + } + + private: @@ -188,8 +222,6 @@ class UnboundedHelloWorld }; -#endif // _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ - +#endif // _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_HPP_ -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/test/blackbox/types/UnboundedHelloWorldCdrAux.hpp b/test/blackbox/types/UnboundedHelloWorldCdrAux.hpp index 3f315c13c01..8a7a496130f 100644 --- a/test/blackbox/types/UnboundedHelloWorldCdrAux.hpp +++ b/test/blackbox/types/UnboundedHelloWorldCdrAux.hpp @@ -22,7 +22,7 @@ #ifndef _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLDCDRAUX_HPP_ #define _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLDCDRAUX_HPP_ -#include "UnboundedHelloWorld.h" +#include "UnboundedHelloWorld.hpp" constexpr uint32_t UnboundedHelloWorld_max_cdr_typesize {268UL}; constexpr uint32_t UnboundedHelloWorld_max_key_cdr_typesize {0UL}; @@ -34,8 +34,6 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const UnboundedHelloWorld& data); diff --git a/test/blackbox/types/UnboundedHelloWorldCdrAux.ipp b/test/blackbox/types/UnboundedHelloWorldCdrAux.ipp index cb0e198f1d3..af8513070cd 100644 --- a/test/blackbox/types/UnboundedHelloWorldCdrAux.ipp +++ b/test/blackbox/types/UnboundedHelloWorldCdrAux.ipp @@ -34,8 +34,6 @@ using namespace eprosima::fastcdr::exception; namespace eprosima { namespace fastcdr { - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, diff --git a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx index 4751dfef5d0..b19574ae8f4 100644 --- a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx +++ b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.cxx @@ -19,18 +19,18 @@ * This file was generated by the tool fastddsgen. */ +#include "UnboundedHelloWorldPubSubTypes.h" +#include #include -#include "UnboundedHelloWorldPubSubTypes.h" #include "UnboundedHelloWorldCdrAux.hpp" +#include "UnboundedHelloWorldTypeObjectSupport.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; - - UnboundedHelloWorldPubSubType::UnboundedHelloWorldPubSubType() { setName("UnboundedHelloWorld"); @@ -219,3 +219,11 @@ bool UnboundedHelloWorldPubSubType::getKey( return true; } +void UnboundedHelloWorldPubSubType::register_type_object_representation() const +{ + register_UnboundedHelloWorld_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "UnboundedHelloWorldCdrAux.ipp" diff --git a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h index 92026849a7a..7f478867fb7 100644 --- a/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h +++ b/test/blackbox/types/UnboundedHelloWorldPubSubTypes.h @@ -29,7 +29,7 @@ #include #include -#include "UnboundedHelloWorld.h" +#include "UnboundedHelloWorld.hpp" #if !defined(GEN_API_VER) || (GEN_API_VER != 2) @@ -38,8 +38,6 @@ #endif // GEN_API_VER - - /*! * @brief This class represents the TopicDataType of the type UnboundedHelloWorld defined by the user in the IDL file. * @ingroup UnboundedHelloWorld @@ -90,6 +88,9 @@ class UnboundedHelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataTy eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const 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 new file mode 100644 index 00000000000..325f00d32e3 --- /dev/null +++ b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.cxx @@ -0,0 +1,248 @@ +// 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 UnboundedHelloWorldTypeObjectSupport.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 "UnboundedHelloWorldTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "UnboundedHelloWorld.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_UnboundedHelloWorld_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_UnboundedHelloWorld_type_identifier(); + + }); +} + +void register_UnboundedHelloWorld_type_identifier() +{ + { + StructTypeFlag struct_flags_UnboundedHelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + 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; + CompleteTypeDetail detail_UnboundedHelloWorld = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_UnboundedHelloWorld, ann_custom_UnboundedHelloWorld, type_name_UnboundedHelloWorld.to_string()); + CompleteStructHeader header_UnboundedHelloWorld; + header_UnboundedHelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_UnboundedHelloWorld); + CompleteStructMemberSeq member_seq_UnboundedHelloWorld; + { + return_code_UnboundedHelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_UnboundedHelloWorld); + + if (return_code_UnboundedHelloWorld != eprosima::fastdds::dds::RETCODE_OK) + { + 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); + 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()))) + { + 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."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_UnboundedHelloWorld.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_UnboundedHelloWorld); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_UnboundedHelloWorld, member_index); + } + { + 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) + { + std::string type_id_kind_anonymous_string_unbounded("TI_STRING8_SMALL"); + if (type_id_kind_anonymous_string_unbounded == "TI_STRING8_SMALL") + { + 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."); + } + } + else if (type_id_kind_anonymous_string_unbounded == "TI_STRING8_LARGE") + { + LBound bound = 255; + 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_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Unknown String kind."); + return; + } + 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."); + return; + } + } + StructMemberFlag member_flags_message = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + 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 + { + 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_UnboundedHelloWorld.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_UnboundedHelloWorld); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_UnboundedHelloWorld, member_message); + } + 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())) + { + 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."); + return; + } + } +} + diff --git a/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp new file mode 100644 index 00000000000..4bd0dcd83af --- /dev/null +++ b/test/blackbox/types/UnboundedHelloWorldTypeObjectSupport.hpp @@ -0,0 +1,54 @@ +// 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 UnboundedHelloWorldTypeObjectSupport.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_UNBOUNDEDHELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ + + +#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 + +/** + * @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 + +/** + * @brief Register UnboundedHelloWorld 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. + */ +void register_UnboundedHelloWorld_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/blackbox/types/UnboundedHelloWorldv1.cxx b/test/blackbox/types/UnboundedHelloWorldv1.cxx deleted file mode 100644 index 20f4eb18c68..00000000000 --- a/test/blackbox/types/UnboundedHelloWorldv1.cxx +++ /dev/null @@ -1,286 +0,0 @@ -// 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 UnboundedHelloWorld.cpp - * This source file contains the implementation of the described types in the IDL file. - * - * This file was generated by the tool fastddsgen. - */ - -#ifdef _WIN32 -// Remove linker warning LNK4221 on Visual Studio -namespace { -char dummy; -} // namespace -#endif // _WIN32 - -#include "UnboundedHelloWorld.h" - -#if FASTCDR_VERSION_MAJOR == 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - -namespace helper { namespace internal { - -enum class Size { - UInt8, - UInt16, - UInt32, - UInt64, -}; - -constexpr Size get_size(int s) { - return (s <= 8 ) ? Size::UInt8: - (s <= 16) ? Size::UInt16: - (s <= 32) ? Size::UInt32: Size::UInt64; -} - -template -struct FindTypeH; - -template<> -struct FindTypeH { - using type = std::uint8_t; -}; - -template<> -struct FindTypeH { - using type = std::uint16_t; -}; - -template<> -struct FindTypeH { - using type = std::uint32_t; -}; - -template<> -struct FindTypeH { - using type = std::uint64_t; -}; -} - -template -struct FindType { - using type = typename internal::FindTypeH::type; -}; -} - -#define UnboundedHelloWorld_max_cdr_typesize 268ULL; - - - - -UnboundedHelloWorld::UnboundedHelloWorld() -{ - // unsigned short m_index - m_index = 0; - // /type_d() m_message - - -} - -UnboundedHelloWorld::~UnboundedHelloWorld() -{ -} - -UnboundedHelloWorld::UnboundedHelloWorld( - const UnboundedHelloWorld& x) -{ - m_index = x.m_index; - - - m_message = x.m_message; - -} - -UnboundedHelloWorld::UnboundedHelloWorld( - UnboundedHelloWorld&& x) noexcept -{ - m_index = x.m_index; - - - m_message = std::move(x.m_message); - -} - -UnboundedHelloWorld& UnboundedHelloWorld::operator =( - const UnboundedHelloWorld& x) -{ - m_index = x.m_index; - - - m_message = x.m_message; - - return *this; -} - -UnboundedHelloWorld& UnboundedHelloWorld::operator =( - UnboundedHelloWorld&& x) noexcept -{ - m_index = x.m_index; - - - m_message = std::move(x.m_message); - - return *this; -} - -bool UnboundedHelloWorld::operator ==( - const UnboundedHelloWorld& x) const -{ - return (m_index == x.m_index && - m_message == x.m_message); -} - -bool UnboundedHelloWorld::operator !=( - const UnboundedHelloWorld& x) const -{ - return !(*this == x); -} - -size_t UnboundedHelloWorld::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return UnboundedHelloWorld_max_cdr_typesize; -} - -size_t UnboundedHelloWorld::getCdrSerializedSize( - const UnboundedHelloWorld& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.message().size() + 1; - - - return current_alignment - initial_alignment; -} - - -void UnboundedHelloWorld::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_index; - - scdr << m_message.c_str(); - -} - -void UnboundedHelloWorld::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_index; - - - - dcdr >> m_message; - - -} - - -bool UnboundedHelloWorld::isKeyDefined() -{ - return false; -} - -void UnboundedHelloWorld::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ -void UnboundedHelloWorld::index( - uint16_t _index) -{ - m_index = _index; -} - -/*! - * @brief This function returns the value of member index - * @return Value of member index - */ -uint16_t UnboundedHelloWorld::index() const -{ - return m_index; -} - -/*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ -uint16_t& UnboundedHelloWorld::index() -{ - return m_index; -} - - -/*! - * @brief This function copies the value in member message - * @param _message New value to be copied in member message - */ -void UnboundedHelloWorld::message( - const std::string& _message) -{ - m_message = _message; -} - -/*! - * @brief This function moves the value in member message - * @param _message New value to be moved in member message - */ -void UnboundedHelloWorld::message( - std::string&& _message) -{ - m_message = std::move(_message); -} - -/*! - * @brief This function returns a constant reference to member message - * @return Constant reference to member message - */ -const std::string& UnboundedHelloWorld::message() const -{ - return m_message; -} - -/*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ -std::string& UnboundedHelloWorld::message() -{ - return m_message; -} - - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/test/blackbox/types/UnboundedHelloWorldv1.h b/test/blackbox/types/UnboundedHelloWorldv1.h deleted file mode 100644 index c9841d4b711..00000000000 --- a/test/blackbox/types/UnboundedHelloWorldv1.h +++ /dev/null @@ -1,244 +0,0 @@ -// 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 UnboundedHelloWorld.h - * This header file contains the declaration of the described types in the IDL file. - * - * This file was generated by the tool fastddsgen. - */ - -#include - -#if FASTCDR_VERSION_MAJOR == 1 - -#ifndef _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ -#define _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ - - -#include - -#include -#include -#include -#include -#include -#include -#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 - -#if defined(_WIN32) -#if defined(EPROSIMA_USER_DLL_EXPORT) -#if defined(UNBOUNDEDHELLOWORLD_SOURCE) -#define UNBOUNDEDHELLOWORLD_DllAPI __declspec( dllexport ) -#else -#define UNBOUNDEDHELLOWORLD_DllAPI __declspec( dllimport ) -#endif // UNBOUNDEDHELLOWORLD_SOURCE -#else -#define UNBOUNDEDHELLOWORLD_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define UNBOUNDEDHELLOWORLD_DllAPI -#endif // _WIN32 - -namespace eprosima { -namespace fastcdr { -class Cdr; -} // namespace fastcdr -} // namespace eprosima - - - - - -/*! - * @brief This class represents the structure UnboundedHelloWorld defined by the user in the IDL file. - * @ingroup UnboundedHelloWorld - */ -class UnboundedHelloWorld -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport UnboundedHelloWorld(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~UnboundedHelloWorld(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object UnboundedHelloWorld that will be copied. - */ - eProsima_user_DllExport UnboundedHelloWorld( - const UnboundedHelloWorld& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object UnboundedHelloWorld that will be copied. - */ - eProsima_user_DllExport UnboundedHelloWorld( - UnboundedHelloWorld&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object UnboundedHelloWorld that will be copied. - */ - eProsima_user_DllExport UnboundedHelloWorld& operator =( - const UnboundedHelloWorld& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object UnboundedHelloWorld that will be copied. - */ - eProsima_user_DllExport UnboundedHelloWorld& operator =( - UnboundedHelloWorld&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x UnboundedHelloWorld object to compare. - */ - eProsima_user_DllExport bool operator ==( - const UnboundedHelloWorld& x) const; - - /*! - * @brief Comparison operator. - * @param x UnboundedHelloWorld object to compare. - */ - eProsima_user_DllExport bool operator !=( - const UnboundedHelloWorld& x) const; - - /*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ - eProsima_user_DllExport void index( - uint16_t _index); - - /*! - * @brief This function returns the value of member index - * @return Value of member index - */ - eProsima_user_DllExport uint16_t index() const; - - /*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ - eProsima_user_DllExport uint16_t& index(); - - - /*! - * @brief This function copies the value in member message - * @param _message New value to be copied in member message - */ - eProsima_user_DllExport void message( - const std::string& _message); - - /*! - * @brief This function moves the value in member message - * @param _message New value to be moved in member message - */ - eProsima_user_DllExport void message( - std::string&& _message); - - /*! - * @brief This function returns a constant reference to member message - * @return Constant reference to member message - */ - eProsima_user_DllExport const std::string& message() const; - - /*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ - eProsima_user_DllExport std::string& message(); - - - /*! - * @brief This function returns the maximum serialized size of an object - * depending on the buffer alignment. - * @param current_alignment Buffer alignment. - * @return Maximum serialized size. - */ - eProsima_user_DllExport static size_t getMaxCdrSerializedSize( - size_t current_alignment = 0); - - /*! - * @brief This function returns the serialized size of a data depending on the buffer alignment. - * @param data Data which is calculated its serialized size. - * @param current_alignment Buffer alignment. - * @return Serialized size. - */ - eProsima_user_DllExport static size_t getCdrSerializedSize( - const UnboundedHelloWorld& data, - size_t current_alignment = 0); - - - - /*! - * @brief This function serializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serialize( - eprosima::fastcdr::Cdr& cdr) const; - - /*! - * @brief This function deserializes an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void deserialize( - eprosima::fastcdr::Cdr& cdr); - - - - - /*! - * @brief This function tells you if the Key has been defined for this type - */ - eProsima_user_DllExport static bool isKeyDefined(); - - /*! - * @brief This function serializes the key members of an object using CDR serialization. - * @param cdr CDR serialization object. - */ - eProsima_user_DllExport void serializeKey( - eprosima::fastcdr::Cdr& cdr) const; - - -private: - - uint16_t m_index; - std::string m_message; - -}; - - -#endif // _FAST_DDS_GENERATED_UNBOUNDEDHELLOWORLD_H_ - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/test/blackbox/types/statistics/monitorservice_types.hpp b/test/blackbox/types/statistics/monitorservice_types.hpp index 563d32def58..dfc591b1a88 100644 --- a/test/blackbox/types/statistics/monitorservice_types.hpp +++ b/test/blackbox/types/statistics/monitorservice_types.hpp @@ -71,8 +71,6 @@ enum class ConnectionMode : uint32_t INTRAPROCESS, TRANSPORT }; - - /*! * @brief This class represents the structure Connection defined by the user in the IDL file. * @ingroup monitorservice_types @@ -337,8 +335,6 @@ class Connection std::vector m_used_locators; }; - - /*! * @brief This class represents the structure QosPolicyCount_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -499,8 +495,6 @@ class QosPolicyCount_s uint32_t m_count{0}; }; - - /*! * @brief This class represents the structure BaseStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -626,8 +620,6 @@ class BaseStatus_s }; typedef std::vector QosPolicyCountSeq_s; - - /*! * @brief This class represents the structure IncompatibleQoSStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -835,8 +827,6 @@ class IncompatibleQoSStatus_s QosPolicyCountSeq_s m_policies; }; - - /*! * @brief This class represents the structure LivelinessChangedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -1044,8 +1034,6 @@ class LivelinessChangedStatus_s std::array m_last_publication_handle{0}; }; - - /*! * @brief This class represents the structure DeadlineMissedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -1237,8 +1225,6 @@ const StatusKind SAMPLE_LOST = 7; const StatusKind STATUSES_SIZE = 8; } // namespace StatusKind - - /*! * @brief This class represents the union MonitorServiceData defined by the user in the IDL file. * @ingroup monitorservice_types @@ -2441,8 +2427,6 @@ class MonitorServiceData SampleLostStatus_s m_sample_lost_status; uint8_t m_statuses_size{0}; }; - - /*! * @brief This class represents the structure MonitorServiceStatusData defined by the user in the IDL file. * @ingroup monitorservice_types diff --git a/test/blackbox/types/statistics/monitorservice_typesCdrAux.hpp b/test/blackbox/types/statistics/monitorservice_typesCdrAux.hpp index 2e938ae1912..ee5fff198a7 100644 --- a/test/blackbox/types/statistics/monitorservice_typesCdrAux.hpp +++ b/test/blackbox/types/statistics/monitorservice_typesCdrAux.hpp @@ -73,40 +73,27 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::Connection& data); - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::QosPolicyCount_s& data); - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::BaseStatus_s& data); - - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::IncompatibleQoSStatus_s& data); - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::LivelinessChangedStatus_s& data); - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::fastdds::statistics::DeadlineMissedStatus_s& data); @@ -114,22 +101,6 @@ eProsima_user_DllExport void serialize_key( - - - - - - - - - - - - - - - - eProsima_user_DllExport void serialize_key( diff --git a/test/blackbox/types/statistics/monitorservice_typesCdrAux.ipp b/test/blackbox/types/statistics/monitorservice_typesCdrAux.ipp index fc0ae843fc7..ba6c0ae694b 100644 --- a/test/blackbox/types/statistics/monitorservice_typesCdrAux.ipp +++ b/test/blackbox/types/statistics/monitorservice_typesCdrAux.ipp @@ -34,8 +34,6 @@ using namespace eprosima::fastcdr::exception; namespace eprosima { namespace fastcdr { - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -54,17 +52,17 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.mode(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.mode(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.guid(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.guid(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.announced_locators(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.announced_locators(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), - data.used_locators(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), + data.used_locators(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -90,7 +88,7 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(1) << data.guid() << eprosima::fastcdr::MemberId(2) << data.announced_locators() << eprosima::fastcdr::MemberId(3) << data.used_locators() - ; +; scdr.end_serialize_type(current_state); } @@ -109,21 +107,21 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.mode(); - break; + case 0: + dcdr >> data.mode(); + break; - case 1: - dcdr >> data.guid(); - break; + case 1: + dcdr >> data.guid(); + break; - case 2: - dcdr >> data.announced_locators(); - break; + case 2: + dcdr >> data.announced_locators(); + break; - case 3: - dcdr >> data.used_locators(); - break; + case 3: + dcdr >> data.used_locators(); + break; default: ret_value = false; @@ -143,6 +141,7 @@ void serialize_key( static_cast(data); } + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -161,11 +160,11 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.policy_id(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.policy_id(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.count(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -189,7 +188,7 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.policy_id() << eprosima::fastcdr::MemberId(1) << data.count() - ; +; scdr.end_serialize_type(current_state); } @@ -208,13 +207,13 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.policy_id(); - break; + case 0: + dcdr >> data.policy_id(); + break; - case 1: - dcdr >> data.count(); - break; + case 1: + dcdr >> data.count(); + break; default: ret_value = false; @@ -234,6 +233,7 @@ void serialize_key( static_cast(data); } + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -252,8 +252,8 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.total_count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.total_count(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -276,7 +276,7 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.total_count() - ; +; scdr.end_serialize_type(current_state); } @@ -295,9 +295,9 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.total_count(); - break; + case 0: + dcdr >> data.total_count(); + break; default: ret_value = false; @@ -317,6 +317,8 @@ void serialize_key( static_cast(data); } + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -335,14 +337,14 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.total_count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.total_count(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.last_policy_id(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.last_policy_id(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.policies(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.policies(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -367,7 +369,7 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.total_count() << eprosima::fastcdr::MemberId(1) << data.last_policy_id() << eprosima::fastcdr::MemberId(2) << data.policies() - ; +; scdr.end_serialize_type(current_state); } @@ -386,17 +388,17 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.total_count(); - break; + case 0: + dcdr >> data.total_count(); + break; - case 1: - dcdr >> data.last_policy_id(); - break; + case 1: + dcdr >> data.last_policy_id(); + break; - case 2: - dcdr >> data.policies(); - break; + case 2: + dcdr >> data.policies(); + break; default: ret_value = false; @@ -416,6 +418,7 @@ void serialize_key( static_cast(data); } + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -434,14 +437,14 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.alive_count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.alive_count(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.not_alive_count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.not_alive_count(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.last_publication_handle(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.last_publication_handle(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -466,7 +469,7 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.alive_count() << eprosima::fastcdr::MemberId(1) << data.not_alive_count() << eprosima::fastcdr::MemberId(2) << data.last_publication_handle() - ; +; scdr.end_serialize_type(current_state); } @@ -485,17 +488,17 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.alive_count(); - break; + case 0: + dcdr >> data.alive_count(); + break; - case 1: - dcdr >> data.not_alive_count(); - break; + case 1: + dcdr >> data.not_alive_count(); + break; - case 2: - dcdr >> data.last_publication_handle(); - break; + case 2: + dcdr >> data.last_publication_handle(); + break; default: ret_value = false; @@ -515,6 +518,7 @@ void serialize_key( static_cast(data); } + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -533,11 +537,11 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.total_count(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.total_count(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.last_instance_handle(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.last_instance_handle(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -561,7 +565,7 @@ eProsima_user_DllExport void serialize( scdr << eprosima::fastcdr::MemberId(0) << data.total_count() << eprosima::fastcdr::MemberId(1) << data.last_instance_handle() - ; +; scdr.end_serialize_type(current_state); } @@ -580,13 +584,13 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.total_count(); - break; + case 0: + dcdr >> data.total_count(); + break; - case 1: - dcdr >> data.last_instance_handle(); - break; + case 1: + dcdr >> data.last_instance_handle(); + break; default: ret_value = false; @@ -606,6 +610,11 @@ void serialize_key( static_cast(data); } + + + + + template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -628,50 +637,50 @@ eProsima_user_DllExport size_t calculate_serialized_size( switch (data._d()) { - case eprosima::fastdds::statistics::StatusKind::PROXY: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.entity_proxy(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::CONNECTION_LIST: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.connection_list(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::INCOMPATIBLE_QOS: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), - data.incompatible_qos_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::INCONSISTENT_TOPIC: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(4), - data.inconsistent_topic_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::LIVELINESS_LOST: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(5), - data.liveliness_lost_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::LIVELINESS_CHANGED: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(6), - data.liveliness_changed_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::DEADLINE_MISSED: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(7), - data.deadline_missed_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::SAMPLE_LOST: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(8), - data.sample_lost_status(), current_alignment); - break; - - case eprosima::fastdds::statistics::StatusKind::STATUSES_SIZE: - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(9), - data.statuses_size(), current_alignment); - break; + case StatusKind::PROXY: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.entity_proxy(), current_alignment); + break; + + case StatusKind::CONNECTION_LIST: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.connection_list(), current_alignment); + break; + + case StatusKind::INCOMPATIBLE_QOS: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(3), + data.incompatible_qos_status(), current_alignment); + break; + + case StatusKind::INCONSISTENT_TOPIC: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(4), + data.inconsistent_topic_status(), current_alignment); + break; + + case StatusKind::LIVELINESS_LOST: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(5), + data.liveliness_lost_status(), current_alignment); + break; + + case StatusKind::LIVELINESS_CHANGED: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(6), + data.liveliness_changed_status(), current_alignment); + break; + + case StatusKind::DEADLINE_MISSED: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(7), + data.deadline_missed_status(), current_alignment); + break; + + case StatusKind::SAMPLE_LOST: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(8), + data.sample_lost_status(), current_alignment); + break; + + case StatusKind::STATUSES_SIZE: + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(9), + data.statuses_size(), current_alignment); + break; default: break; @@ -682,6 +691,7 @@ eProsima_user_DllExport size_t calculate_serialized_size( return calculated_size; } + template<> eProsima_user_DllExport void serialize( eprosima::fastcdr::Cdr& scdr, @@ -699,41 +709,41 @@ eProsima_user_DllExport void serialize( switch (data._d()) { - case eprosima::fastdds::statistics::StatusKind::PROXY: - scdr << eprosima::fastcdr::MemberId(1) << data.entity_proxy(); - break; + case StatusKind::PROXY: + scdr << eprosima::fastcdr::MemberId(1) << data.entity_proxy(); + break; - case eprosima::fastdds::statistics::StatusKind::CONNECTION_LIST: - scdr << eprosima::fastcdr::MemberId(2) << data.connection_list(); - break; + case StatusKind::CONNECTION_LIST: + scdr << eprosima::fastcdr::MemberId(2) << data.connection_list(); + break; - case eprosima::fastdds::statistics::StatusKind::INCOMPATIBLE_QOS: - scdr << eprosima::fastcdr::MemberId(3) << data.incompatible_qos_status(); - break; + case StatusKind::INCOMPATIBLE_QOS: + scdr << eprosima::fastcdr::MemberId(3) << data.incompatible_qos_status(); + break; - case eprosima::fastdds::statistics::StatusKind::INCONSISTENT_TOPIC: - scdr << eprosima::fastcdr::MemberId(4) << data.inconsistent_topic_status(); - break; + case StatusKind::INCONSISTENT_TOPIC: + scdr << eprosima::fastcdr::MemberId(4) << data.inconsistent_topic_status(); + break; - case eprosima::fastdds::statistics::StatusKind::LIVELINESS_LOST: - scdr << eprosima::fastcdr::MemberId(5) << data.liveliness_lost_status(); - break; + case StatusKind::LIVELINESS_LOST: + scdr << eprosima::fastcdr::MemberId(5) << data.liveliness_lost_status(); + break; - case eprosima::fastdds::statistics::StatusKind::LIVELINESS_CHANGED: - scdr << eprosima::fastcdr::MemberId(6) << data.liveliness_changed_status(); - break; + case StatusKind::LIVELINESS_CHANGED: + scdr << eprosima::fastcdr::MemberId(6) << data.liveliness_changed_status(); + break; - case eprosima::fastdds::statistics::StatusKind::DEADLINE_MISSED: - scdr << eprosima::fastcdr::MemberId(7) << data.deadline_missed_status(); - break; + case StatusKind::DEADLINE_MISSED: + scdr << eprosima::fastcdr::MemberId(7) << data.deadline_missed_status(); + break; - case eprosima::fastdds::statistics::StatusKind::SAMPLE_LOST: - scdr << eprosima::fastcdr::MemberId(8) << data.sample_lost_status(); - break; + case StatusKind::SAMPLE_LOST: + scdr << eprosima::fastcdr::MemberId(8) << data.sample_lost_status(); + break; - case eprosima::fastdds::statistics::StatusKind::STATUSES_SIZE: - scdr << eprosima::fastcdr::MemberId(9) << data.statuses_size(); - break; + case StatusKind::STATUSES_SIZE: + scdr << eprosima::fastcdr::MemberId(9) << data.statuses_size(); + break; default: break; @@ -763,41 +773,41 @@ eProsima_user_DllExport void deserialize( default: switch (data._d()) { - case StatusKind::PROXY: - dcdr >> data.entity_proxy(); - break; + case StatusKind::PROXY: + dcdr >> data.entity_proxy(); + break; - case StatusKind::CONNECTION_LIST: - dcdr >> data.connection_list(); - break; + case StatusKind::CONNECTION_LIST: + dcdr >> data.connection_list(); + break; - case StatusKind::INCOMPATIBLE_QOS: - dcdr >> data.incompatible_qos_status(); - break; + case StatusKind::INCOMPATIBLE_QOS: + dcdr >> data.incompatible_qos_status(); + break; - case StatusKind::INCONSISTENT_TOPIC: - dcdr >> data.inconsistent_topic_status(); - break; + case StatusKind::INCONSISTENT_TOPIC: + dcdr >> data.inconsistent_topic_status(); + break; - case StatusKind::LIVELINESS_LOST: - dcdr >> data.liveliness_lost_status(); - break; + case StatusKind::LIVELINESS_LOST: + dcdr >> data.liveliness_lost_status(); + break; - case StatusKind::LIVELINESS_CHANGED: - dcdr >> data.liveliness_changed_status(); - break; + case StatusKind::LIVELINESS_CHANGED: + dcdr >> data.liveliness_changed_status(); + break; - case StatusKind::DEADLINE_MISSED: - dcdr >> data.deadline_missed_status(); - break; + case StatusKind::DEADLINE_MISSED: + dcdr >> data.deadline_missed_status(); + break; - case StatusKind::SAMPLE_LOST: - dcdr >> data.sample_lost_status(); - break; + case StatusKind::SAMPLE_LOST: + dcdr >> data.sample_lost_status(); + break; - case StatusKind::STATUSES_SIZE: - dcdr >> data.statuses_size(); - break; + case StatusKind::STATUSES_SIZE: + dcdr >> data.statuses_size(); + break; default: break; @@ -827,14 +837,14 @@ eProsima_user_DllExport size_t calculate_serialized_size( current_alignment)}; - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), - data.local_entity(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(0), + data.local_entity(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), - data.status_kind(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(1), + data.status_kind(), current_alignment); - calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), - data.value(), current_alignment); + calculated_size += calculator.calculate_member_serialized_size(eprosima::fastcdr::MemberId(2), + data.value(), current_alignment); calculated_size += calculator.end_calculate_type_serialized_size(previous_encoding, current_alignment); @@ -859,7 +869,7 @@ eProsima_user_DllExport void serialize( << eprosima::fastcdr::MemberId(0) << data.local_entity() << eprosima::fastcdr::MemberId(1) << data.status_kind() << eprosima::fastcdr::MemberId(2) << data.value() - ; +; scdr.end_serialize_type(current_state); } @@ -878,17 +888,17 @@ eProsima_user_DllExport void deserialize( bool ret_value = true; switch (mid.id) { - case 0: - dcdr >> data.local_entity(); - break; + case 0: + dcdr >> data.local_entity(); + break; - case 1: - dcdr >> data.status_kind(); - break; + case 1: + dcdr >> data.status_kind(); + break; - case 2: - dcdr >> data.value(); - break; + case 2: + dcdr >> data.value(); + break; default: ret_value = false; @@ -906,13 +916,15 @@ void serialize_key( static_cast(scdr); static_cast(data); - scdr << data.local_entity(); + scdr << data.local_entity(); - scdr << data.status_kind(); + scdr << data.status_kind(); } + + } // namespace fastcdr } // namespace eprosima diff --git a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx index 9937e7cca54..4fb6eeb1156 100644 --- a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx +++ b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.cxx @@ -19,11 +19,13 @@ * This file was generated by the tool fastddsgen. */ +#include "monitorservice_typesPubSubTypes.h" +#include #include -#include "monitorservice_typesPubSubTypes.h" #include "monitorservice_typesCdrAux.hpp" +#include "monitorservice_typesTypeObjectSupport.hpp" using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; @@ -32,8 +34,6 @@ using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; namespace eprosima { namespace fastdds { namespace statistics { - - ConnectionPubSubType::ConnectionPubSubType() { setName("eprosima::fastdds::statistics::Connection"); @@ -222,7 +222,10 @@ namespace eprosima { return true; } - + void ConnectionPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } QosPolicyCount_sPubSubType::QosPolicyCount_sPubSubType() { @@ -412,7 +415,10 @@ namespace eprosima { return true; } - + void QosPolicyCount_sPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } BaseStatus_sPubSubType::BaseStatus_sPubSubType() { @@ -602,8 +608,10 @@ namespace eprosima { return true; } - - + void BaseStatus_sPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } IncompatibleQoSStatus_sPubSubType::IncompatibleQoSStatus_sPubSubType() @@ -794,7 +802,10 @@ namespace eprosima { return true; } - + void IncompatibleQoSStatus_sPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } LivelinessChangedStatus_sPubSubType::LivelinessChangedStatus_sPubSubType() { @@ -984,7 +995,10 @@ namespace eprosima { return true; } - + void LivelinessChangedStatus_sPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } DeadlineMissedStatus_sPubSubType::DeadlineMissedStatus_sPubSubType() { @@ -1174,30 +1188,18 @@ namespace eprosima { return true; } - - + void DeadlineMissedStatus_sPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } namespace StatusKind { - - - - - - - - - - - } // namespace StatusKind - - - MonitorServiceStatusDataPubSubType::MonitorServiceStatusDataPubSubType() { setName("eprosima::fastdds::statistics::MonitorServiceStatusData"); @@ -1386,6 +1388,11 @@ namespace eprosima { return true; } + void MonitorServiceStatusDataPubSubType::register_type_object_representation() const + { + register_monitorservice_types_type_objects(); + } + } // namespace statistics } // namespace fastdds diff --git a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h index 281706e71de..755c38f6842 100644 --- a/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h +++ b/test/blackbox/types/statistics/monitorservice_typesPubSubTypes.h @@ -45,8 +45,6 @@ namespace eprosima namespace statistics { - - /*! * @brief This class represents the TopicDataType of the type Connection defined by the user in the IDL file. * @ingroup monitorservice_types @@ -97,6 +95,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -135,8 +136,6 @@ namespace eprosima }; - - /*! * @brief This class represents the TopicDataType of the type QosPolicyCount_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -187,6 +186,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -225,8 +227,6 @@ namespace eprosima }; - - /*! * @brief This class represents the TopicDataType of the type BaseStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -277,6 +277,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -316,8 +319,6 @@ namespace eprosima }; typedef std::vector QosPolicyCountSeq_s; - - /*! * @brief This class represents the TopicDataType of the type IncompatibleQoSStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -368,6 +369,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -406,8 +410,6 @@ namespace eprosima }; - - /*! * @brief This class represents the TopicDataType of the type LivelinessChangedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -458,6 +460,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -496,8 +501,6 @@ namespace eprosima }; - - /*! * @brief This class represents the TopicDataType of the type DeadlineMissedStatus_s defined by the user in the IDL file. * @ingroup monitorservice_types @@ -548,6 +551,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const override; + #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED eProsima_user_DllExport inline bool is_bounded() const override { @@ -603,9 +609,6 @@ namespace eprosima } // namespace StatusKind - - - /*! * @brief This class represents the TopicDataType of the type MonitorServiceStatusData defined by the user in the IDL file. * @ingroup monitorservice_types @@ -656,6 +659,9 @@ namespace eprosima eProsima_user_DllExport void deleteData( void* data) override; + //Register TypeObject representation in Fast DDS TypeObjectRegistry + eProsima_user_DllExport void register_type_object_representation() const 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 new file mode 100644 index 00000000000..6d8d94198ce --- /dev/null +++ b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.cxx @@ -0,0 +1,12397 @@ +// 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 monitorservice_typesTypeObjectSupport.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 "monitorservice_typesTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "monitorservice_types.hpp" + +#include "types.hpp" + +using namespace eprosima::fastdds::dds::xtypes; + +void register_monitorservice_types_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_EntityId_s_type_identifier(); + + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GuidPrefix_s_type_identifier(); + + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_GUID_s_type_identifier(); + + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SequenceNumber_s_type_identifier(); + + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_SampleIdentity_s_type_identifier(); + + eprosima::fastdds::statistics::detail::register_eprosima_fastdds_statistics_detail_Locator_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DiscoveryTime_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityCount_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_SampleIdentityCount_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Entity2LocatorTraffic_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_WriterReaderData_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Locator2LocatorData_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_EntityData_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_PhysicalData_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Data_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_Connection_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier(); + + eprosima::fastdds::statistics::register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier(); + + }); +} + +namespace eprosima { +namespace fastdds { +namespace statistics { +void register_eprosima_fastdds_statistics_Connection_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_12("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_12 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_4("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_4 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier() +{ + { + 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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +namespace StatusKind { +} // namespace StatusKind +void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier() +{ + { + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_sequence_uint8_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_12("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_12 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_4("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_4 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } +} +void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier() +{ + { + StructTypeFlag struct_flags_MonitorServiceStatusData = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + 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; + CompleteTypeDetail detail_MonitorServiceStatusData = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_MonitorServiceStatusData, ann_custom_MonitorServiceStatusData, type_name_MonitorServiceStatusData.to_string()); + CompleteStructHeader header_MonitorServiceStatusData; + header_MonitorServiceStatusData = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_MonitorServiceStatusData); + CompleteStructMemberSeq member_seq_MonitorServiceStatusData; + { + return_code_MonitorServiceStatusData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::detail::GUID_s", type_ids_MonitorServiceStatusData); + + if (return_code_MonitorServiceStatusData != 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_12("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_12 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_4("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_4 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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())) + { + 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."); + return; + } + } + } + StructMemberFlag member_flags_local_entity = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + 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()))) + { + 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."); + return; + } + MemberName name_local_entity = "local_entity"; + eprosima::fastcdr::optional member_ann_builtin_local_entity; + ann_custom_MonitorServiceStatusData.reset(); + AppliedAnnotationSeq tmp_ann_custom_local_entity; + eprosima::fastcdr::optional unit_local_entity; + eprosima::fastcdr::optional min_local_entity; + eprosima::fastcdr::optional max_local_entity; + eprosima::fastcdr::optional hash_id_local_entity; + if (unit_local_entity.has_value() || min_local_entity.has_value() || max_local_entity.has_value() || hash_id_local_entity.has_value()) + { + member_ann_builtin_local_entity = TypeObjectUtils::build_applied_builtin_member_annotations(unit_local_entity, min_local_entity, max_local_entity, hash_id_local_entity); + } + if (!tmp_ann_custom_local_entity.empty()) + { + ann_custom_MonitorServiceStatusData = tmp_ann_custom_local_entity; + } + CompleteMemberDetail detail_local_entity = TypeObjectUtils::build_complete_member_detail(name_local_entity, member_ann_builtin_local_entity, ann_custom_MonitorServiceStatusData); + CompleteStructMember member_local_entity = TypeObjectUtils::build_complete_struct_member(common_local_entity, detail_local_entity); + TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_local_entity); + } + { + 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) + { + 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."); + 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."); + 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."); + return; + } + } + StructMemberFlag member_flags_status_kind = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + 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()))) + { + 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."); + return; + } + MemberName name_status_kind = "status_kind"; + eprosima::fastcdr::optional member_ann_builtin_status_kind; + ann_custom_MonitorServiceStatusData.reset(); + AppliedAnnotationSeq tmp_ann_custom_status_kind; + eprosima::fastcdr::optional unit_status_kind; + eprosima::fastcdr::optional min_status_kind; + eprosima::fastcdr::optional max_status_kind; + eprosima::fastcdr::optional hash_id_status_kind; + if (unit_status_kind.has_value() || min_status_kind.has_value() || max_status_kind.has_value() || hash_id_status_kind.has_value()) + { + member_ann_builtin_status_kind = TypeObjectUtils::build_applied_builtin_member_annotations(unit_status_kind, min_status_kind, max_status_kind, hash_id_status_kind); + } + if (!tmp_ann_custom_status_kind.empty()) + { + ann_custom_MonitorServiceStatusData = tmp_ann_custom_status_kind; + } + CompleteMemberDetail detail_status_kind = TypeObjectUtils::build_complete_member_detail(name_status_kind, member_ann_builtin_status_kind, ann_custom_MonitorServiceStatusData); + CompleteStructMember member_status_kind = TypeObjectUtils::build_complete_struct_member(common_status_kind, detail_status_kind); + TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_status_kind); + } + { + return_code_MonitorServiceStatusData = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::fastdds::statistics::MonitorServiceData", type_ids_MonitorServiceStatusData); + + if (return_code_MonitorServiceStatusData != eprosima::fastdds::dds::RETCODE_OK) + { + { + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_sequence_uint8_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_12("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_12 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(12)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_4("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_4 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(4)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_detail_Locator_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_Connection_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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); + std::string type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_fastdds_statistics_QosPolicyCount_s_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + 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."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_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_l_sequence_type_identifier(seq_ldefn, "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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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); + std::string type_id_kind_anonymous_array_uint8_t_16("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_16 == "TI_PLAIN_ARRAY_SMALL") + { + 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."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(16)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_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_l_array_type_identifier(array_ldefn, "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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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())) + { + 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."); + return; + } + } + } + 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."); + 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."); + 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."); + 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."); + 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."); + 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())) + { + 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."); + 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 = 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()))) + { + 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."); + return; + } + MemberName name_value = "value"; + eprosima::fastcdr::optional member_ann_builtin_value; + ann_custom_MonitorServiceStatusData.reset(); + CompleteMemberDetail detail_value = TypeObjectUtils::build_complete_member_detail(name_value, member_ann_builtin_value, ann_custom_MonitorServiceStatusData); + CompleteStructMember member_value = TypeObjectUtils::build_complete_struct_member(common_value, detail_value); + TypeObjectUtils::add_complete_struct_member(member_seq_MonitorServiceStatusData, member_value); + } + 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())) + { + 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."); + return; + } + } +} + +} // namespace statistics + +} // namespace fastdds + +} // namespace eprosima + diff --git a/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp new file mode 100644 index 00000000000..7aa680576f0 --- /dev/null +++ b/test/blackbox/types/statistics/monitorservice_typesTypeObjectSupport.hpp @@ -0,0 +1,127 @@ +// 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 monitorservice_typesTypeObjectSupport.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_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_TYPE_OBJECT_SUPPORT_HPP_ + +#include "typesTypeObjectSupport.hpp" + +#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 + +/** + * @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. + * 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. + */ +void register_eprosima_fastdds_statistics_Connection_type_identifier(); + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_QosPolicyCount_s_type_identifier(); + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_BaseStatus_s_type_identifier(); + + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_IncompatibleQoSStatus_s_type_identifier(); + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_LivelinessChangedStatus_s_type_identifier(); + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_DeadlineMissedStatus_s_type_identifier(); + + + + +namespace StatusKind { +} // namespace StatusKind + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_MonitorServiceData_type_identifier(); + +/** + * @brief Register eprosima_fastdds_statistics_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. + */ +void register_eprosima_fastdds_statistics_MonitorServiceStatusData_type_identifier(); + +} // namespace statistics + +} // namespace fastdds + +} // namespace eprosima + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_EPROSIMA_FASTDDS_STATISTICS_MONITORSERVICE_TYPES_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/test/unittest/dynamic_types/idl/Test.hpp b/test/unittest/dynamic_types/idl/Test.hpp index 73d8e7b3141..104d57c6fac 100644 --- a/test/unittest/dynamic_types/idl/Test.hpp +++ b/test/unittest/dynamic_types/idl/Test.hpp @@ -32,6 +32,7 @@ #include #include + #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -101,31 +102,31 @@ class BasicStruct eProsima_user_DllExport BasicStruct( const BasicStruct& x) { - m_my_bool = x.m_my_bool; + m_my_bool = x.m_my_bool; - m_my_octet = x.m_my_octet; + m_my_octet = x.m_my_octet; - m_my_int16 = x.m_my_int16; + m_my_int16 = x.m_my_int16; - m_my_int32 = x.m_my_int32; + m_my_int32 = x.m_my_int32; - m_my_int64 = x.m_my_int64; + m_my_int64 = x.m_my_int64; - m_my_uint16 = x.m_my_uint16; + m_my_uint16 = x.m_my_uint16; - m_my_uint32 = x.m_my_uint32; + m_my_uint32 = x.m_my_uint32; - m_my_uint64 = x.m_my_uint64; + m_my_uint64 = x.m_my_uint64; - m_my_float32 = x.m_my_float32; + m_my_float32 = x.m_my_float32; - m_my_float64 = x.m_my_float64; + m_my_float64 = x.m_my_float64; - m_my_float128 = x.m_my_float128; + m_my_float128 = x.m_my_float128; - m_my_char = x.m_my_char; + m_my_char = x.m_my_char; - m_my_string = x.m_my_string; + m_my_string = x.m_my_string; } @@ -159,31 +160,31 @@ class BasicStruct const BasicStruct& x) { - m_my_bool = x.m_my_bool; + m_my_bool = x.m_my_bool; - m_my_octet = x.m_my_octet; + m_my_octet = x.m_my_octet; - m_my_int16 = x.m_my_int16; + m_my_int16 = x.m_my_int16; - m_my_int32 = x.m_my_int32; + m_my_int32 = x.m_my_int32; - m_my_int64 = x.m_my_int64; + m_my_int64 = x.m_my_int64; - m_my_uint16 = x.m_my_uint16; + m_my_uint16 = x.m_my_uint16; - m_my_uint32 = x.m_my_uint32; + m_my_uint32 = x.m_my_uint32; - m_my_uint64 = x.m_my_uint64; + m_my_uint64 = x.m_my_uint64; - m_my_float32 = x.m_my_float32; + m_my_float32 = x.m_my_float32; - m_my_float64 = x.m_my_float64; + m_my_float64 = x.m_my_float64; - m_my_float128 = x.m_my_float128; + m_my_float128 = x.m_my_float128; - m_my_char = x.m_my_char; + m_my_char = x.m_my_char; - m_my_string = x.m_my_string; + m_my_string = x.m_my_string; return *this; } @@ -220,18 +221,18 @@ class BasicStruct const BasicStruct& x) const { return (m_my_bool == x.m_my_bool && - m_my_octet == x.m_my_octet && - m_my_int16 == x.m_my_int16 && - m_my_int32 == x.m_my_int32 && - m_my_int64 == x.m_my_int64 && - m_my_uint16 == x.m_my_uint16 && - m_my_uint32 == x.m_my_uint32 && - m_my_uint64 == x.m_my_uint64 && - m_my_float32 == x.m_my_float32 && - m_my_float64 == x.m_my_float64 && - m_my_float128 == x.m_my_float128 && - m_my_char == x.m_my_char && - m_my_string == x.m_my_string); + m_my_octet == x.m_my_octet && + m_my_int16 == x.m_my_int16 && + m_my_int32 == x.m_my_int32 && + m_my_int64 == x.m_my_int64 && + m_my_uint16 == x.m_my_uint16 && + m_my_uint32 == x.m_my_uint32 && + m_my_uint64 == x.m_my_uint64 && + m_my_float32 == x.m_my_float32 && + m_my_float64 == x.m_my_float64 && + m_my_float128 == x.m_my_float128 && + m_my_char == x.m_my_char && + m_my_string == x.m_my_string); } /*! @@ -272,6 +273,7 @@ class BasicStruct return m_my_bool; } + /*! * @brief This function sets a value in member my_octet * @param _my_octet New value for member my_octet @@ -300,6 +302,7 @@ class BasicStruct return m_my_octet; } + /*! * @brief This function sets a value in member my_int16 * @param _my_int16 New value for member my_int16 @@ -328,6 +331,7 @@ class BasicStruct return m_my_int16; } + /*! * @brief This function sets a value in member my_int32 * @param _my_int32 New value for member my_int32 @@ -356,6 +360,7 @@ class BasicStruct return m_my_int32; } + /*! * @brief This function sets a value in member my_int64 * @param _my_int64 New value for member my_int64 @@ -384,6 +389,7 @@ class BasicStruct return m_my_int64; } + /*! * @brief This function sets a value in member my_uint16 * @param _my_uint16 New value for member my_uint16 @@ -412,6 +418,7 @@ class BasicStruct return m_my_uint16; } + /*! * @brief This function sets a value in member my_uint32 * @param _my_uint32 New value for member my_uint32 @@ -440,6 +447,7 @@ class BasicStruct return m_my_uint32; } + /*! * @brief This function sets a value in member my_uint64 * @param _my_uint64 New value for member my_uint64 @@ -468,6 +476,7 @@ class BasicStruct return m_my_uint64; } + /*! * @brief This function sets a value in member my_float32 * @param _my_float32 New value for member my_float32 @@ -496,6 +505,7 @@ class BasicStruct return m_my_float32; } + /*! * @brief This function sets a value in member my_float64 * @param _my_float64 New value for member my_float64 @@ -524,6 +534,7 @@ class BasicStruct return m_my_float64; } + /*! * @brief This function sets a value in member my_float128 * @param _my_float128 New value for member my_float128 @@ -552,6 +563,7 @@ class BasicStruct return m_my_float128; } + /*! * @brief This function sets a value in member my_char * @param _my_char New value for member my_char @@ -580,6 +592,7 @@ class BasicStruct return m_my_char; } + /*! * @brief This function copies the value in member my_string * @param _my_string New value to be copied in member my_string @@ -618,6 +631,8 @@ class BasicStruct return m_my_string; } + + private: bool m_my_bool{false}; @@ -674,45 +689,45 @@ class ComplexStruct eProsima_user_DllExport ComplexStruct( const ComplexStruct& x) { - m_my_octet = x.m_my_octet; + m_my_octet = x.m_my_octet; - m_my_basic_struct = x.m_my_basic_struct; + m_my_basic_struct = x.m_my_basic_struct; - m_my_alias_enum = x.m_my_alias_enum; + m_my_alias_enum = x.m_my_alias_enum; - m_my_enum = x.m_my_enum; + m_my_enum = x.m_my_enum; - m_my_sequence_octet = x.m_my_sequence_octet; + m_my_sequence_octet = x.m_my_sequence_octet; - m_my_sequence_struct = x.m_my_sequence_struct; + m_my_sequence_struct = x.m_my_sequence_struct; - m_my_array_octet = x.m_my_array_octet; + m_my_array_octet = x.m_my_array_octet; - m_my_octet_array_500 = x.m_my_octet_array_500; + m_my_octet_array_500 = x.m_my_octet_array_500; - m_my_array_struct = x.m_my_array_struct; + m_my_array_struct = x.m_my_array_struct; - m_my_map_octet_short = x.m_my_map_octet_short; + m_my_map_octet_short = x.m_my_map_octet_short; - m_my_map_long_struct = x.m_my_map_long_struct; + m_my_map_long_struct = x.m_my_map_long_struct; - m_my_map_long_seq_octet = x.m_my_map_long_seq_octet; + m_my_map_long_seq_octet = x.m_my_map_long_seq_octet; - m_my_map_long_octet_array_500 = x.m_my_map_long_octet_array_500; + m_my_map_long_octet_array_500 = x.m_my_map_long_octet_array_500; - m_my_map_long_lol_type = x.m_my_map_long_lol_type; + m_my_map_long_lol_type = x.m_my_map_long_lol_type; - m_my_small_string_8 = x.m_my_small_string_8; + m_my_small_string_8 = x.m_my_small_string_8; - m_my_large_string_8 = x.m_my_large_string_8; + m_my_large_string_8 = x.m_my_large_string_8; - m_my_array_string = x.m_my_array_string; + m_my_array_string = x.m_my_array_string; - m_multi_alias_array_42 = x.m_multi_alias_array_42; + m_multi_alias_array_42 = x.m_multi_alias_array_42; - m_my_array_arrays = x.m_my_array_arrays; + m_my_array_arrays = x.m_my_array_arrays; - m_my_sequences_array = x.m_my_sequences_array; + m_my_sequences_array = x.m_my_sequences_array; } @@ -753,45 +768,45 @@ class ComplexStruct const ComplexStruct& x) { - m_my_octet = x.m_my_octet; + m_my_octet = x.m_my_octet; - m_my_basic_struct = x.m_my_basic_struct; + m_my_basic_struct = x.m_my_basic_struct; - m_my_alias_enum = x.m_my_alias_enum; + m_my_alias_enum = x.m_my_alias_enum; - m_my_enum = x.m_my_enum; + m_my_enum = x.m_my_enum; - m_my_sequence_octet = x.m_my_sequence_octet; + m_my_sequence_octet = x.m_my_sequence_octet; - m_my_sequence_struct = x.m_my_sequence_struct; + m_my_sequence_struct = x.m_my_sequence_struct; - m_my_array_octet = x.m_my_array_octet; + m_my_array_octet = x.m_my_array_octet; - m_my_octet_array_500 = x.m_my_octet_array_500; + m_my_octet_array_500 = x.m_my_octet_array_500; - m_my_array_struct = x.m_my_array_struct; + m_my_array_struct = x.m_my_array_struct; - m_my_map_octet_short = x.m_my_map_octet_short; + m_my_map_octet_short = x.m_my_map_octet_short; - m_my_map_long_struct = x.m_my_map_long_struct; + m_my_map_long_struct = x.m_my_map_long_struct; - m_my_map_long_seq_octet = x.m_my_map_long_seq_octet; + m_my_map_long_seq_octet = x.m_my_map_long_seq_octet; - m_my_map_long_octet_array_500 = x.m_my_map_long_octet_array_500; + m_my_map_long_octet_array_500 = x.m_my_map_long_octet_array_500; - m_my_map_long_lol_type = x.m_my_map_long_lol_type; + m_my_map_long_lol_type = x.m_my_map_long_lol_type; - m_my_small_string_8 = x.m_my_small_string_8; + m_my_small_string_8 = x.m_my_small_string_8; - m_my_large_string_8 = x.m_my_large_string_8; + m_my_large_string_8 = x.m_my_large_string_8; - m_my_array_string = x.m_my_array_string; + m_my_array_string = x.m_my_array_string; - m_multi_alias_array_42 = x.m_multi_alias_array_42; + m_multi_alias_array_42 = x.m_multi_alias_array_42; - m_my_array_arrays = x.m_my_array_arrays; + m_my_array_arrays = x.m_my_array_arrays; - m_my_sequences_array = x.m_my_sequences_array; + m_my_sequences_array = x.m_my_sequences_array; return *this; } @@ -835,25 +850,25 @@ class ComplexStruct const ComplexStruct& x) const { return (m_my_octet == x.m_my_octet && - m_my_basic_struct == x.m_my_basic_struct && - m_my_alias_enum == x.m_my_alias_enum && - m_my_enum == x.m_my_enum && - m_my_sequence_octet == x.m_my_sequence_octet && - m_my_sequence_struct == x.m_my_sequence_struct && - m_my_array_octet == x.m_my_array_octet && - m_my_octet_array_500 == x.m_my_octet_array_500 && - m_my_array_struct == x.m_my_array_struct && - m_my_map_octet_short == x.m_my_map_octet_short && - m_my_map_long_struct == x.m_my_map_long_struct && - m_my_map_long_seq_octet == x.m_my_map_long_seq_octet && - m_my_map_long_octet_array_500 == x.m_my_map_long_octet_array_500 && - m_my_map_long_lol_type == x.m_my_map_long_lol_type && - m_my_small_string_8 == x.m_my_small_string_8 && - m_my_large_string_8 == x.m_my_large_string_8 && - m_my_array_string == x.m_my_array_string && - m_multi_alias_array_42 == x.m_multi_alias_array_42 && - m_my_array_arrays == x.m_my_array_arrays && - m_my_sequences_array == x.m_my_sequences_array); + m_my_basic_struct == x.m_my_basic_struct && + m_my_alias_enum == x.m_my_alias_enum && + m_my_enum == x.m_my_enum && + m_my_sequence_octet == x.m_my_sequence_octet && + m_my_sequence_struct == x.m_my_sequence_struct && + m_my_array_octet == x.m_my_array_octet && + m_my_octet_array_500 == x.m_my_octet_array_500 && + m_my_array_struct == x.m_my_array_struct && + m_my_map_octet_short == x.m_my_map_octet_short && + m_my_map_long_struct == x.m_my_map_long_struct && + m_my_map_long_seq_octet == x.m_my_map_long_seq_octet && + m_my_map_long_octet_array_500 == x.m_my_map_long_octet_array_500 && + m_my_map_long_lol_type == x.m_my_map_long_lol_type && + m_my_small_string_8 == x.m_my_small_string_8 && + m_my_large_string_8 == x.m_my_large_string_8 && + m_my_array_string == x.m_my_array_string && + m_multi_alias_array_42 == x.m_multi_alias_array_42 && + m_my_array_arrays == x.m_my_array_arrays && + m_my_sequences_array == x.m_my_sequences_array); } /*! @@ -894,6 +909,7 @@ class ComplexStruct return m_my_octet; } + /*! * @brief This function copies the value in member my_basic_struct * @param _my_basic_struct New value to be copied in member my_basic_struct @@ -932,6 +948,7 @@ class ComplexStruct return m_my_basic_struct; } + /*! * @brief This function sets a value in member my_alias_enum * @param _my_alias_enum New value for member my_alias_enum @@ -960,6 +977,7 @@ class ComplexStruct return m_my_alias_enum; } + /*! * @brief This function sets a value in member my_enum * @param _my_enum New value for member my_enum @@ -988,6 +1006,7 @@ class ComplexStruct return m_my_enum; } + /*! * @brief This function copies the value in member my_sequence_octet * @param _my_sequence_octet New value to be copied in member my_sequence_octet @@ -1026,6 +1045,7 @@ class ComplexStruct return m_my_sequence_octet; } + /*! * @brief This function copies the value in member my_sequence_struct * @param _my_sequence_struct New value to be copied in member my_sequence_struct @@ -1064,6 +1084,7 @@ class ComplexStruct return m_my_sequence_struct; } + /*! * @brief This function copies the value in member my_array_octet * @param _my_array_octet New value to be copied in member my_array_octet @@ -1102,6 +1123,7 @@ class ComplexStruct return m_my_array_octet; } + /*! * @brief This function copies the value in member my_octet_array_500 * @param _my_octet_array_500 New value to be copied in member my_octet_array_500 @@ -1140,6 +1162,7 @@ class ComplexStruct return m_my_octet_array_500; } + /*! * @brief This function copies the value in member my_array_struct * @param _my_array_struct New value to be copied in member my_array_struct @@ -1178,6 +1201,7 @@ class ComplexStruct return m_my_array_struct; } + /*! * @brief This function copies the value in member my_map_octet_short * @param _my_map_octet_short New value to be copied in member my_map_octet_short @@ -1216,6 +1240,7 @@ class ComplexStruct return m_my_map_octet_short; } + /*! * @brief This function copies the value in member my_map_long_struct * @param _my_map_long_struct New value to be copied in member my_map_long_struct @@ -1254,6 +1279,7 @@ class ComplexStruct return m_my_map_long_struct; } + /*! * @brief This function copies the value in member my_map_long_seq_octet * @param _my_map_long_seq_octet New value to be copied in member my_map_long_seq_octet @@ -1292,6 +1318,7 @@ class ComplexStruct return m_my_map_long_seq_octet; } + /*! * @brief This function copies the value in member my_map_long_octet_array_500 * @param _my_map_long_octet_array_500 New value to be copied in member my_map_long_octet_array_500 @@ -1330,6 +1357,7 @@ class ComplexStruct return m_my_map_long_octet_array_500; } + /*! * @brief This function copies the value in member my_map_long_lol_type * @param _my_map_long_lol_type New value to be copied in member my_map_long_lol_type @@ -1368,6 +1396,7 @@ class ComplexStruct return m_my_map_long_lol_type; } + /*! * @brief This function copies the value in member my_small_string_8 * @param _my_small_string_8 New value to be copied in member my_small_string_8 @@ -1406,6 +1435,7 @@ class ComplexStruct return m_my_small_string_8; } + /*! * @brief This function copies the value in member my_large_string_8 * @param _my_large_string_8 New value to be copied in member my_large_string_8 @@ -1444,6 +1474,7 @@ class ComplexStruct return m_my_large_string_8; } + /*! * @brief This function copies the value in member my_array_string * @param _my_array_string New value to be copied in member my_array_string @@ -1468,8 +1499,7 @@ class ComplexStruct * @brief This function returns a constant reference to member my_array_string * @return Constant reference to member my_array_string */ - eProsima_user_DllExport const std::array, 5>, - 5>& my_array_string() const + eProsima_user_DllExport const std::array, 5>, 5>& my_array_string() const { return m_my_array_string; } @@ -1483,6 +1513,7 @@ class ComplexStruct return m_my_array_string; } + /*! * @brief This function copies the value in member multi_alias_array_42 * @param _multi_alias_array_42 New value to be copied in member multi_alias_array_42 @@ -1521,6 +1552,7 @@ class ComplexStruct return m_multi_alias_array_42; } + /*! * @brief This function copies the value in member my_array_arrays * @param _my_array_arrays New value to be copied in member my_array_arrays @@ -1559,6 +1591,7 @@ class ComplexStruct return m_my_array_arrays; } + /*! * @brief This function copies the value in member my_sequences_array * @param _my_sequences_array New value to be copied in member my_sequences_array @@ -1597,6 +1630,8 @@ class ComplexStruct return m_my_sequences_array; } + + private: uint8_t m_my_octet{0}; @@ -1839,8 +1874,7 @@ class MyUnion if (!b) { - throw eprosima::fastcdr::exception::BadParamException( - "Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -1940,6 +1974,7 @@ class MyUnion return m_basic; } + /*! * @brief This function copies the value in member complex * @param _complex New value to be copied in member complex @@ -2018,6 +2053,8 @@ class MyUnion return m_complex; } + + private: MyEnum m__d; @@ -2271,8 +2308,7 @@ class MyUnion2 if (!b) { - throw eprosima::fastcdr::exception::BadParamException( - "Discriminator doesn't correspond with the selected union member"); + throw eprosima::fastcdr::exception::BadParamException("Discriminator doesn't correspond with the selected union member"); } m__d = __d; @@ -2360,6 +2396,7 @@ class MyUnion2 return m_uno; } + /*! * @brief This function copies the value in member imString * @param _imString New value to be copied in member imString @@ -2436,6 +2473,7 @@ class MyUnion2 return m_imString; } + /*! * @brief This function sets a value in member tres * @param _tres New value for member tres @@ -2500,6 +2538,8 @@ class MyUnion2 return m_tres; } + + private: uint8_t m__d; @@ -2537,9 +2577,9 @@ class CompleteStruct eProsima_user_DllExport CompleteStruct( const CompleteStruct& x) { - m_my_union = x.m_my_union; + m_my_union = x.m_my_union; - m_my_union_2 = x.m_my_union_2; + m_my_union_2 = x.m_my_union_2; } @@ -2562,9 +2602,9 @@ class CompleteStruct const CompleteStruct& x) { - m_my_union = x.m_my_union; + m_my_union = x.m_my_union; - m_my_union_2 = x.m_my_union_2; + m_my_union_2 = x.m_my_union_2; return *this; } @@ -2590,7 +2630,7 @@ class CompleteStruct const CompleteStruct& x) const { return (m_my_union == x.m_my_union && - m_my_union_2 == x.m_my_union_2); + m_my_union_2 == x.m_my_union_2); } /*! @@ -2641,6 +2681,7 @@ class CompleteStruct return m_my_union; } + /*! * @brief This function copies the value in member my_union_2 * @param _my_union_2 New value to be copied in member my_union_2 @@ -2679,6 +2720,8 @@ class CompleteStruct return m_my_union_2; } + + private: MyUnion m_my_union; @@ -2714,9 +2757,9 @@ class KeyedStruct eProsima_user_DllExport KeyedStruct( const KeyedStruct& x) { - m_key = x.m_key; + m_key = x.m_key; - m_basic = x.m_basic; + m_basic = x.m_basic; } @@ -2739,9 +2782,9 @@ class KeyedStruct const KeyedStruct& x) { - m_key = x.m_key; + m_key = x.m_key; - m_basic = x.m_basic; + m_basic = x.m_basic; return *this; } @@ -2767,7 +2810,7 @@ class KeyedStruct const KeyedStruct& x) const { return (m_key == x.m_key && - m_basic == x.m_basic); + m_basic == x.m_basic); } /*! @@ -2808,6 +2851,7 @@ class KeyedStruct return m_key; } + /*! * @brief This function copies the value in member basic * @param _basic New value to be copied in member basic @@ -2846,6 +2890,8 @@ class KeyedStruct return m_basic; } + + private: uint8_t m_key{0}; diff --git a/test/unittest/dynamic_types/idl/new_features_4_2TypeObjectSupport.cxx b/test/unittest/dynamic_types/idl/new_features_4_2TypeObjectSupport.cxx index 85c76efef88..0f86e6e0bee 100644 --- a/test/unittest/dynamic_types/idl/new_features_4_2TypeObjectSupport.cxx +++ b/test/unittest/dynamic_types/idl/new_features_4_2TypeObjectSupport.cxx @@ -2069,7 +2069,7 @@ void register_bitmodule_BM2_type_identifier() eprosima::fastcdr::optional ann_custom_BM2; CompleteTypeDetail detail_BM2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BM2, ann_custom_BM2, type_name_BM2.to_string()); CompleteStructHeader header_BM2; - if (EK_COMPLETE == type_ids_BM2.type_identifier1()._d() || TK_NONE == type_ids_BM2.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_BM2.type_identifier1()._d()) { header_BM2 = TypeObjectUtils::build_complete_struct_header(type_ids_BM2.type_identifier1(), detail_BM2); } @@ -3023,7 +3023,7 @@ void register_StructTest_type_identifier() eprosima::fastcdr::optional ann_custom_StructTest; CompleteTypeDetail detail_StructTest = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructTest, ann_custom_StructTest, type_name_StructTest.to_string()); CompleteStructHeader header_StructTest; - if (EK_COMPLETE == type_ids_StructTest.type_identifier1()._d() || TK_NONE == type_ids_StructTest.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_StructTest.type_identifier1()._d()) { header_StructTest = TypeObjectUtils::build_complete_struct_header(type_ids_StructTest.type_identifier1(), detail_StructTest); } @@ -3935,7 +3935,7 @@ void register_StructTest_type_identifier() eprosima::fastcdr::optional ann_custom_BM2; CompleteTypeDetail detail_BM2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_BM2, ann_custom_BM2, type_name_BM2.to_string()); CompleteStructHeader header_BM2; - if (EK_COMPLETE == type_ids_BM2.type_identifier1()._d() || TK_NONE == type_ids_BM2.type_identifier1()._d()) + if (EK_COMPLETE == type_ids_BM2.type_identifier1()._d()) { header_BM2 = TypeObjectUtils::build_complete_struct_header(type_ids_BM2.type_identifier1(), detail_BM2); }