From 8a20026f37a3c602eb9571cf0d21f77afc71ae38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Bueno=20L=C3=B3pez?= <69244257+JLBuenoLopez-eProsima@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:58:09 +0200 Subject: [PATCH] Changes to build Fast DDS with XTypes refactor (#116) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refs #19960. Apply types header-only Signed-off-by: Ricardo González Moreno * Refs #19975. Using new ReturnCode_t Signed-off-by: Ricardo González Moreno * Refs #20129: update TypeInformationParameter constructor. Define xtypes namespace and DomainId_t Signed-off-by: JLBuenoLopez-eProsima * Refs #20335: ignore TypeSupport constructor passing a DynamicPubSubType Signed-off-by: JLBuenoLopez-eProsima * Refs #20335: regenerate types Signed-off-by: JLBuenoLopez-eProsima * Refs #19451: regenerate types Signed-off-by: Ricardo González Moreno * Refs #19451: Ignore DomainParticipantFactory::get_dynamic_type_builder_from_xml_by_name Signed-off-by: Ricardo González Moreno * Refs #20734: fixes after rebase Signed-off-by: JLBuenoLopez-eProsima * Refs #20734: remove obsolete file Signed-off-by: JLBuenoLopez-eProsima * Refs #20734: Fix some tests Signed-off-by: Ricardo González Moreno * Refs #20734. Fix tests Signed-off-by: Ricardo González Moreno * Refs #20734. Regenerate idl dll exporting missing Signed-off-by: Ricardo González Moreno --------- Signed-off-by: Ricardo González Moreno Signed-off-by: JLBuenoLopez-eProsima Co-authored-by: Ricardo González Moreno --- fastdds_python/src/swig/fastdds.i | 9 +- .../typelookup/TypeLookupRequestListener.i | 19 - .../typelookup/common/TypeLookupTypes.i | 47 - .../ReturnCode.i} | 9 +- .../TypeLookupManager.i => core/Types.i} | 6 +- .../fastdds/dds/core/policy/QosPolicies.i | 2 +- .../fastdds/dds/domain/DomainParticipant.i | 12 +- .../dds/domain/DomainParticipantFactory.i | 3 +- .../swig/fastdds/dds/publisher/DataWriter.i | 12 +- .../swig/fastdds/dds/publisher/Publisher.i | 10 +- .../swig/fastdds/dds/subscriber/DataReader.i | 12 +- .../swig/fastdds/dds/subscriber/Subscriber.i | 10 +- .../src/swig/fastdds/dds/topic/TypeSupport.i | 3 +- .../src/swig/fastrtps/types/TypesBase.i | 65 - fastdds_python/test/api/test_datareader.py | 260 +- fastdds_python/test/api/test_datawriter.py | 90 +- .../test/api/test_domainparticipant.py | 96 +- .../test/api/test_domainparticipantfactory.py | 24 +- fastdds_python/test/api/test_publisher.py | 70 +- fastdds_python/test/api/test_qos.py | 12 - fastdds_python/test/api/test_subscriber.py | 66 +- fastdds_python/test/api/test_waitset.py | 34 +- fastdds_python/test/types/CMakeLists.txt | 15 +- fastdds_python/test/types/test_complete.cxx | 6826 --- .../{test_complete.h => test_complete.hpp} | 4303 +- fastdds_python/test/types/test_complete.i | 17 +- .../test/types/test_completeCdrAux.hpp | 18 +- .../test/types/test_completeCdrAux.ipp | 12 - .../test/types/test_completePubSubTypes.cxx | 30 +- .../test/types/test_completePubSubTypes.h | 23 +- .../types/test_completeTypeObjectSupport.cxx | 44189 ++++++++++++++++ .../types/test_completeTypeObjectSupport.hpp | 69 + fastdds_python/test/types/test_completev1.cxx | 10440 ---- fastdds_python/test/types/test_completev1.h | 4482 -- .../test/types/test_included_modules.cxx | 586 - ...ed_modules.h => test_included_modules.hpp} | 408 +- .../test/types/test_included_modules.i | 9 +- .../types/test_included_modulesCdrAux.hpp | 6 +- .../types/test_included_modulesCdrAux.ipp | 4 - .../test_included_modulesPubSubTypes.cxx | 16 +- .../types/test_included_modulesPubSubTypes.h | 11 +- ...test_included_modulesTypeObjectSupport.cxx | 1168 + ...test_included_modulesTypeObjectSupport.hpp | 60 + .../test/types/test_included_modulesv1.cxx | 941 - .../test/types/test_included_modulesv1.h | 524 - fastdds_python/test/types/test_modules.cxx | 6792 --- .../{test_modules.h => test_modules.hpp} | 4354 +- fastdds_python/test/types/test_modules.i | 19 +- .../test/types/test_modulesCdrAux.hpp | 20 +- .../test/types/test_modulesCdrAux.ipp | 14 - .../test/types/test_modulesPubSubTypes.cxx | 32 +- .../test/types/test_modulesPubSubTypes.h | 27 +- .../types/test_modulesTypeObjectSupport.cxx | 31333 +++++++++++ .../types/test_modulesTypeObjectSupport.hpp | 78 + fastdds_python/test/types/test_modulesv1.cxx | 10383 ---- fastdds_python/test/types/test_modulesv1.h | 4457 -- .../HelloWorldExample/CMakeLists.txt | 5 +- .../HelloWorldExample/HelloWorld.cxx | 168 - .../{HelloWorld.h => HelloWorld.hpp} | 124 +- .../HelloWorldExample/HelloWorld.i | 7 +- .../HelloWorldExample/HelloWorldCdrAux.hpp | 4 +- .../HelloWorldExample/HelloWorldCdrAux.ipp | 2 - .../HelloWorldPubSubTypes.cxx | 14 +- .../HelloWorldExample/HelloWorldPubSubTypes.h | 7 +- .../HelloWorldTypeObjectSupport.cxx | 248 + .../HelloWorldTypeObjectSupport.hpp | 54 + .../HelloWorldExample/HelloWorldv1.cxx | 286 - .../HelloWorldExample/HelloWorldv1.h | 244 - .../scripts/update_generated_code_from_idl.sh | 8 +- 69 files changed, 85361 insertions(+), 48347 deletions(-) delete mode 100644 fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupRequestListener.i delete mode 100644 fastdds_python/src/swig/fastdds/dds/builtin/typelookup/common/TypeLookupTypes.i rename fastdds_python/src/swig/fastdds/dds/{builtin/typelookup/TypeLookupReplyListener.i => core/ReturnCode.i} (68%) rename fastdds_python/src/swig/fastdds/dds/{builtin/typelookup/TypeLookupManager.i => core/Types.i} (74%) delete mode 100644 fastdds_python/src/swig/fastrtps/types/TypesBase.i delete mode 100644 fastdds_python/test/types/test_complete.cxx rename fastdds_python/test/types/{test_complete.h => test_complete.hpp} (59%) create mode 100644 fastdds_python/test/types/test_completeTypeObjectSupport.cxx create mode 100644 fastdds_python/test/types/test_completeTypeObjectSupport.hpp delete mode 100644 fastdds_python/test/types/test_completev1.cxx delete mode 100644 fastdds_python/test/types/test_completev1.h delete mode 100644 fastdds_python/test/types/test_included_modules.cxx rename fastdds_python/test/types/{test_included_modules.h => test_included_modules.hpp} (54%) create mode 100644 fastdds_python/test/types/test_included_modulesTypeObjectSupport.cxx create mode 100644 fastdds_python/test/types/test_included_modulesTypeObjectSupport.hpp delete mode 100644 fastdds_python/test/types/test_included_modulesv1.cxx delete mode 100644 fastdds_python/test/types/test_included_modulesv1.h delete mode 100644 fastdds_python/test/types/test_modules.cxx rename fastdds_python/test/types/{test_modules.h => test_modules.hpp} (56%) create mode 100644 fastdds_python/test/types/test_modulesTypeObjectSupport.cxx create mode 100644 fastdds_python/test/types/test_modulesTypeObjectSupport.hpp delete mode 100644 fastdds_python/test/types/test_modulesv1.cxx delete mode 100644 fastdds_python/test/types/test_modulesv1.h delete mode 100644 fastdds_python_examples/HelloWorldExample/HelloWorld.cxx rename fastdds_python_examples/HelloWorldExample/{HelloWorld.h => HelloWorld.hpp} (69%) create mode 100644 fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.cxx create mode 100644 fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.hpp delete mode 100644 fastdds_python_examples/HelloWorldExample/HelloWorldv1.cxx delete mode 100644 fastdds_python_examples/HelloWorldExample/HelloWorldv1.h diff --git a/fastdds_python/src/swig/fastdds.i b/fastdds_python/src/swig/fastdds.i index 0e03b74a..460349e6 100644 --- a/fastdds_python/src/swig/fastdds.i +++ b/fastdds_python/src/swig/fastdds.i @@ -108,6 +108,12 @@ namespace builtin { // Just declaring the namespace } // namespace builtin + +namespace xtypes { + + // Just declaring the namespace + +} // namespace xtypes } // namespace dds } // namespace fastdds } // namespace eprosima @@ -151,7 +157,6 @@ namespace builtin { %include "fastdds/rtps/common/SequenceNumber.i" %include "fastdds/rtps/common/SampleIdentity.i" %include "fastdds/rtps/common/WriteParams.i" -%include "fastrtps/types/TypesBase.i" /* %include "fastdds/rtps/common/SerializedPayload.i" @@ -429,6 +434,7 @@ namespace builtin { */ %include "fastdds/dds/common/InstanceHandle.i" +%include "fastdds/dds/core/ReturnCode.i" %include "fastdds/dds/core/status/StatusMask.i" %include "fastdds/dds/core/policy/ParameterTypes.i" %include "fastdds/dds/core/policy/QosPolicies.i" @@ -449,6 +455,7 @@ namespace builtin { %include "fastdds/dds/core/UserAllocatedSequence.i" %include "fastdds/dds/core/LoanableSequence.i" %include "fastdds/dds/core/LoanableArray.i" +%include "fastdds/dds/core/Types.i" %include "fastdds/dds/core/policy/ReaderDataLifecycleQosPolicy.i" %include "fastdds/dds/core/policy/WriterDataLifecycleQosPolicy.i" %include "fastdds/dds/core/status/LivelinessChangedStatus.i" diff --git a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupRequestListener.i b/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupRequestListener.i deleted file mode 100644 index 60e2a2d3..00000000 --- a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupRequestListener.i +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2022 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. - -%{ -#include "fastdds/dds/builtin/typelookup/TypeLookupRequestListener.hpp" -%} - -%include "fastdds/dds/builtin/typelookup/TypeLookupRequestListener.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/common/TypeLookupTypes.i b/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/common/TypeLookupTypes.i deleted file mode 100644 index 14ebf795..00000000 --- a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/common/TypeLookupTypes.i +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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. - -%{ -#include "fastdds/dds/builtin/typelookup/common/TypeLookupTypes.hpp" -%} - -// Avoid creating the default constructor for abstract types -%nodefaultctor eprosima::fastdds::dds::builtin::TypeLookup_RequestPubSubType; // Pure virtual -%ignore eprosima::fastdds::dds::builtin::TypeLookup_RequestPubSubType::TypeLookup_RequestPubSubType; - -%nodefaultctor eprosima::fastdds::dds::builtin::TypeLookup_ReplyPubSubType; // Pure virtual -%ignore eprosima::fastdds::dds::builtin::TypeLookup_ReplyPubSubType::TypeLookup_ReplyPubSubType; - -// Ignore overloaded methods that have no application on Python -// Otherwise they will issue a warning -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypes_Result::TypeLookup_getTypes_Result(TypeLookup_getTypes_Result&&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypes_Result::result(TypeLookup_getTypes_Out &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypes_Result::_d() const; - -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::TypeLookup_getTypeDependencies_Result(TypeLookup_getTypeDependencies_Result &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::result(TypeLookup_getTypeDependencies_Out &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::_d() const; - -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Call::TypeLookup_Call(TypeLookup_Call &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Call::result(TypeLookup_getTypeDependencies_Out &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Call::getTypes(TypeLookup_getTypes_In &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Call::getTypeDependencies(TypeLookup_getTypeDependencies_In &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Call::_d() const; - -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Return::TypeLookup_Return(TypeLookup_Return &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Return::getType(TypeLookup_getTypes_Result &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Return::getTypeDependencies(TypeLookup_getTypeDependencies_Result &&); -%ignore eprosima::fastdds::dds::builtin::TypeLookup_Return::_d() const; - -%include "fastdds/dds/builtin/typelookup/common/TypeLookupTypes.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupReplyListener.i b/fastdds_python/src/swig/fastdds/dds/core/ReturnCode.i similarity index 68% rename from fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupReplyListener.i rename to fastdds_python/src/swig/fastdds/dds/core/ReturnCode.i index 8b419377..b7651234 100644 --- a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupReplyListener.i +++ b/fastdds_python/src/swig/fastdds/dds/core/ReturnCode.i @@ -1,4 +1,4 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// Copyright 2023 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. @@ -13,7 +13,10 @@ // limitations under the License. %{ -#include "fastdds/dds/builtin/typelookup/TypeLookupReplyListener.hpp" +#include "fastdds/dds/core/ReturnCode.hpp" %} -%include "fastdds/dds/builtin/typelookup/TypeLookupReplyListener.hpp" + +%include "fastdds/dds/core/detail/DDSReturnCode.hpp" +%include "fastdds/dds/core/detail/DDSSecurityReturnCode.hpp" +%include "fastdds/dds/core/ReturnCode.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupManager.i b/fastdds_python/src/swig/fastdds/dds/core/Types.i similarity index 74% rename from fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupManager.i rename to fastdds_python/src/swig/fastdds/dds/core/Types.i index dc37b25e..7972c3c8 100644 --- a/fastdds_python/src/swig/fastdds/dds/builtin/typelookup/TypeLookupManager.i +++ b/fastdds_python/src/swig/fastdds/dds/core/Types.i @@ -1,4 +1,4 @@ -// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). +// Copyright 2024 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. @@ -13,7 +13,7 @@ // limitations under the License. %{ -#include "fastdds/dds/builtin/typelookup/TypeLookupManager.hpp" +#include "fastdds/dds/core/Types.hpp" %} -%include "fastdds/dds/builtin/typelookup/TypeLookupManager.hpp" +%include "fastdds/dds/core/Types.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/core/policy/QosPolicies.i b/fastdds_python/src/swig/fastdds/dds/core/policy/QosPolicies.i index 00d2f46c..b563cdc2 100644 --- a/fastdds_python/src/swig/fastdds/dds/core/policy/QosPolicies.i +++ b/fastdds_python/src/swig/fastdds/dds/core/policy/QosPolicies.i @@ -47,7 +47,7 @@ // Ignore overloaded constructor that have no effect on target language %ignore eprosima::fastdds::dds::TypeIdV1::TypeIdV1(TypeIdV1 &&); %ignore eprosima::fastdds::dds::TypeObjectV1::TypeObjectV1(TypeObjectV1 &&); -%ignore eprosima::fastdds::dds::xtypes::TypeInformation::TypeInformation(TypeInformation &&); +%ignore eprosima::fastdds::dds::xtypes::TypeInformationParameter::TypeInformationParameter(TypeInformationParameter &&); namespace eprosima { namespace fastdds { diff --git a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i index 8456696a..3fc209d8 100644 --- a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i +++ b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipant.i @@ -30,9 +30,9 @@ eprosima::fastdds::dds::DomainParticipantListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -75,9 +75,9 @@ eprosima::fastdds::dds::DomainParticipantListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener, mask); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener, mask); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -174,7 +174,7 @@ { eprosima::fastdds::dds::PublisherListener* listener = const_cast(publisher->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->delete_publisher(publisher); + eprosima::fastdds::dds::ReturnCode_t ret = self->delete_publisher(publisher); if (nullptr != listener) { @@ -259,7 +259,7 @@ { eprosima::fastdds::dds::SubscriberListener* listener = const_cast(subscriber->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->delete_subscriber(subscriber); + eprosima::fastdds::dds::ReturnCode_t ret = self->delete_subscriber(subscriber); if (nullptr != listener) { diff --git a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipantFactory.i b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipantFactory.i index 51287681..b5fd92d9 100644 --- a/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipantFactory.i +++ b/fastdds_python/src/swig/fastdds/dds/domain/DomainParticipantFactory.i @@ -123,7 +123,7 @@ { eprosima::fastdds::dds::DomainParticipantListener* listener = const_cast(part->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->delete_participant(part); + eprosima::fastdds::dds::ReturnCode_t ret = self->delete_participant(part); if (nullptr != listener) { @@ -144,5 +144,6 @@ %ignore eprosima::fastdds::dds::DomainParticipantFactory::create_participant; %ignore eprosima::fastdds::dds::DomainParticipantFactory::create_participant_with_profile; %ignore eprosima::fastdds::dds::DomainParticipantFactory::delete_participant; +%ignore eprosima::fastdds::dds::DomainParticipantFactory::get_dynamic_type_builder_from_xml_by_name; %include "fastdds/dds/domain/DomainParticipantFactory.hpp" diff --git a/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i b/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i index 97e0d12c..a879f138 100644 --- a/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i +++ b/fastdds_python/src/swig/fastdds/dds/publisher/DataWriter.i @@ -38,9 +38,9 @@ %extend eprosima::fastdds::dds::DataWriter { // TODO Document with %feature("autodoc") - eprosima::fastrtps::types::ReturnCode_t clear_history(size_t* removed) + eprosima::fastdds::dds::ReturnCode_t clear_history(size_t* removed) { - eprosima::fastrtps::types::ReturnCode_t ret = self->clear_history(removed); + eprosima::fastdds::dds::ReturnCode_t ret = self->clear_history(removed); return ret; } @@ -50,9 +50,9 @@ eprosima::fastdds::dds::DataWriterListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -88,9 +88,9 @@ eprosima::fastdds::dds::DataWriterListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener, mask); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener, mask); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; diff --git a/fastdds_python/src/swig/fastdds/dds/publisher/Publisher.i b/fastdds_python/src/swig/fastdds/dds/publisher/Publisher.i index 0fa98d6b..580b67d2 100644 --- a/fastdds_python/src/swig/fastdds/dds/publisher/Publisher.i +++ b/fastdds_python/src/swig/fastdds/dds/publisher/Publisher.i @@ -30,9 +30,9 @@ eprosima::fastdds::dds::PublisherListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -76,9 +76,9 @@ eprosima::fastdds::dds::PublisherListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener, mask); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener, mask); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -187,7 +187,7 @@ { eprosima::fastdds::dds::DataWriterListener* listener = const_cast(writer->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->delete_datawriter(writer); + eprosima::fastdds::dds::ReturnCode_t ret = self->delete_datawriter(writer); if (nullptr != listener) { diff --git a/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i b/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i index 37ac006e..a80940dc 100644 --- a/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i +++ b/fastdds_python/src/swig/fastdds/dds/subscriber/DataReader.i @@ -41,9 +41,9 @@ eprosima::fastdds::dds::DataReaderListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -79,16 +79,16 @@ eprosima::fastdds::dds::DataReaderListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener, mask); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener, mask); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (nullptr != listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(listener); - + if (nullptr != director) { Py_INCREF(director->swig_get_self()); @@ -97,7 +97,7 @@ if (nullptr != old_listener) { Swig::Director* director = SWIG_DIRECTOR_CAST(old_listener); - + if (nullptr != director) { Py_DECREF(director->swig_get_self()); diff --git a/fastdds_python/src/swig/fastdds/dds/subscriber/Subscriber.i b/fastdds_python/src/swig/fastdds/dds/subscriber/Subscriber.i index 3fc70aec..fa71bdbf 100644 --- a/fastdds_python/src/swig/fastdds/dds/subscriber/Subscriber.i +++ b/fastdds_python/src/swig/fastdds/dds/subscriber/Subscriber.i @@ -30,9 +30,9 @@ eprosima::fastdds::dds::SubscriberListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -75,9 +75,9 @@ eprosima::fastdds::dds::SubscriberListener* old_listener = const_cast(self->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->set_listener(listener, mask); + eprosima::fastdds::dds::ReturnCode_t ret = self->set_listener(listener, mask); - if ( (eprosima::fastrtps::types::ReturnCode_t::RETCODE_OK == ret) && (listener != old_listener) ) + if ( (eprosima::fastdds::dds::RETCODE_OK == ret) && (listener != old_listener) ) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; @@ -182,7 +182,7 @@ { eprosima::fastdds::dds::DataReaderListener* listener = const_cast(reader->get_listener()); - eprosima::fastrtps::types::ReturnCode_t ret = self->delete_datareader(reader); + eprosima::fastdds::dds::ReturnCode_t ret = self->delete_datareader(reader); if (nullptr != listener) { diff --git a/fastdds_python/src/swig/fastdds/dds/topic/TypeSupport.i b/fastdds_python/src/swig/fastdds/dds/topic/TypeSupport.i index 02e47539..9fc8a9c8 100644 --- a/fastdds_python/src/swig/fastdds/dds/topic/TypeSupport.i +++ b/fastdds_python/src/swig/fastdds/dds/topic/TypeSupport.i @@ -27,8 +27,9 @@ // This constructor takes ownership of the TopicDataType pointer // We need SWIG to be aware of it, so we ignore it here and redefine it later -%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(fastdds::dds::TopicDataType*); +%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(TopicDataType*); +%ignore eprosima::fastdds::dds::TypeSupport::TypeSupport(DynamicPubSubType); %include "fastdds/dds/topic/TypeSupport.hpp" diff --git a/fastdds_python/src/swig/fastrtps/types/TypesBase.i b/fastdds_python/src/swig/fastrtps/types/TypesBase.i deleted file mode 100644 index ecfbc02d..00000000 --- a/fastdds_python/src/swig/fastrtps/types/TypesBase.i +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2022 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. - -%{ -#include "fastrtps/types/TypesBase.h" -#include -%} - -// SWIG does not support templates in the generated binding, -// because not all output languages support them -// We must explicitly declare the specializations of the templates -%template(OctetSeq) std::vector; - -// Although explicitly deleted, SWIG still tries to create this method -%ignore eprosima::fastrtps::types::ReturnCode_t::operator bool; - -// Ignore overloaded constructors -%ignore eprosima::fastrtps::types::MemberFlag::MemberFlag(MemberFlag &&); -%ignore eprosima::fastrtps::types::TypeFlag::TypeFlag(TypeFlag &&); - -// Ignore type ancillary within the namespace -%ignore eprosima::fastrtps::types::to_size_t; - -%ignore eprosima::fastrtps::types::MemberFlag::serialize; -%ignore eprosima::fastrtps::types::MemberFlag::deserialize; -%ignore eprosima::fastrtps::types::MemberFlag::getCdrSerializedSize; - -%ignore eprosima::fastrtps::types::TypeFlag::serialize; -%ignore eprosima::fastrtps::types::TypeFlag::deserialize; -%ignore eprosima::fastrtps::types::TypeFlag::getCdrSerializedSize; - -%ignore eprosima::fastrtps::types::operator==; -%ignore eprosima::fastrtps::types::operator!=; - -%include "fastrtps/types/TypesBase.h" - -%extend eprosima::fastrtps::types::ReturnCode_t { - std::string __str__() const - { - std::ostringstream out; - out << (*$self)(); - return out.str(); - } - - bool operator==(eprosima::fastrtps::types::ReturnCode_t::ReturnCodeValue value) const - { - return *$self == value; - } - - bool operator!=(eprosima::fastrtps::types::ReturnCode_t::ReturnCodeValue value) const - { - return *$self != value; - } -} diff --git a/fastdds_python/test/api/test_datareader.py b/fastdds_python/test/api/test_datareader.py index 6e83e0ba..a7bcdde4 100644 --- a/fastdds_python/test/api/test_datareader.py +++ b/fastdds_python/test/api/test_datareader.py @@ -72,14 +72,14 @@ def datareader(participant, topic, subscriber, datareader_qos): yield datareader - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -109,14 +109,14 @@ def datawriter(writer_participant, writer_topic, publisher): yield datawriter - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_topic(writer_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_publisher(publisher)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(writer_participant)) @@ -135,8 +135,8 @@ def fill_keyed_complete_test_type(data, cdr_version): struct_type1.float_field(1.0) struct_type1.double_field(1200.5) struct_type1.bool_field(False) - struct_type1.enum_field(pytest.dds_type.RED) - struct_type1.enum2_field(pytest.dds_type.STONE) + struct_type1.enum_field(pytest.dds_type.Color_RED) + struct_type1.enum2_field(pytest.dds_type.Material_STONE) struct_type2 = pytest.dds_type.StructType() struct_type2.char_field('\x02') struct_type2.uint8_field(255) @@ -149,8 +149,8 @@ def fill_keyed_complete_test_type(data, cdr_version): struct_type2.float_field(2.0) struct_type2.double_field(1202.5) struct_type2.bool_field(True) - struct_type2.enum_field(pytest.dds_type.BLUE) - struct_type2.enum2_field(pytest.dds_type.PLASTIC) + struct_type2.enum_field(pytest.dds_type.Color_BLUE) + struct_type2.enum2_field(pytest.dds_type.Material_PLASTIC) struct_type3 = pytest.dds_type.StructType() struct_type3.char_field('\x03') struct_type3.uint8_field(1) @@ -163,8 +163,8 @@ def fill_keyed_complete_test_type(data, cdr_version): struct_type3.float_field(3.0) struct_type3.double_field(3.5) struct_type3.bool_field(False) - struct_type3.enum_field(pytest.dds_type.MAGENTA) - struct_type3.enum2_field(pytest.dds_type.METAL) + struct_type3.enum_field(pytest.dds_type.Color_MAGENTA) + struct_type3.enum2_field(pytest.dds_type.Material_METAL) data.char_field('\x01') data.uint8_field(254) @@ -178,8 +178,8 @@ def fill_keyed_complete_test_type(data, cdr_version): data.double_field(1202.5) data.bool_field(True) data.string_field("Test string") - data.enum_field(pytest.dds_type.MAGENTA) - data.enum2_field(pytest.dds_type.METAL) + data.enum_field(pytest.dds_type.Color_MAGENTA) + data.enum2_field(pytest.dds_type.Material_METAL) data.struct_field().char_field('\x01') data.struct_field().uint8_field(254) data.struct_field().int16_field(-10) @@ -192,8 +192,8 @@ def fill_keyed_complete_test_type(data, cdr_version): data.struct_field().double_field(1202.5) data.struct_field().bool_field(False) data.struct_field().string_field("Test string") - data.struct_field().enum_field(pytest.dds_type.MAGENTA) - data.struct_field().enum2_field(pytest.dds_type.METAL) + data.struct_field().enum_field(pytest.dds_type.Color_MAGENTA) + data.struct_field().enum2_field(pytest.dds_type.Material_METAL) if (cdr_version == 'v1'): data.char_opt_field('\x01') data.uint8_opt_field(254) @@ -207,7 +207,7 @@ def fill_keyed_complete_test_type(data, cdr_version): data.double_opt_field(1202.5) data.bool_opt_field(True) data.string_opt_field("Test string") - data.enum_opt_field(pytest.dds_type.MAGENTA) + data.enum_opt_field(pytest.dds_type.Color_MAGENTA) else: data.char_opt_field().set_value('\x01') data.uint8_opt_field().set_value(254) @@ -221,7 +221,7 @@ def fill_keyed_complete_test_type(data, cdr_version): data.double_opt_field().set_value(1202.5) data.bool_opt_field().set_value(True) data.string_opt_field().set_value("Test string") - data.enum_opt_field().set_value(pytest.dds_type.MAGENTA) + data.enum_opt_field().set_value(pytest.dds_type.Color_MAGENTA) struct_field = pytest.dds_type.StructType() struct_field.char_field('\x01') struct_field.uint8_field(254) @@ -235,8 +235,8 @@ def fill_keyed_complete_test_type(data, cdr_version): struct_field.double_field(1202.5) struct_field.bool_field(True) struct_field.string_field("Test string") - struct_field.enum_field(pytest.dds_type.MAGENTA) - struct_field.enum2_field(pytest.dds_type.METAL) + struct_field.enum_field(pytest.dds_type.Color_MAGENTA) + struct_field.enum2_field(pytest.dds_type.Material_METAL) if (cdr_version == 'v1'): data.struct_opt_field(struct_field) else: @@ -252,10 +252,10 @@ def fill_keyed_complete_test_type(data, cdr_version): data.array_float_field([1.0, 2.0, 3.0]) data.array_double_field([1200.5, 1202.5, 3.5]) data.array_bool_field([False, True, False]) - data.array_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) - data.array_enum2_field()[0] = pytest.dds_type.METAL - data.array_enum2_field()[1] = pytest.dds_type.STONE - data.array_enum2_field()[2] = pytest.dds_type.PLASTIC + data.array_enum_field([pytest.dds_type.Color_RED, pytest.dds_type.Color_BLUE, pytest.dds_type.Color_MAGENTA]) + data.array_enum2_field()[0] = pytest.dds_type.Material_METAL + data.array_enum2_field()[1] = pytest.dds_type.Material_STONE + data.array_enum2_field()[2] = pytest.dds_type.Material_PLASTIC data.array_struct_field([struct_type1, struct_type2, struct_type3]) data.bounded_sequence_char_field(['\x01', '\x02', '\x03']) data.bounded_sequence_uint8_field([254, 255, 1]) @@ -268,10 +268,10 @@ def fill_keyed_complete_test_type(data, cdr_version): data.bounded_sequence_float_field([1.0, 2.0, 3.0]) data.bounded_sequence_double_field([1200.5, 1202.5, 3.5]) data.bounded_sequence_bool_field([False, True, False]) - data.bounded_sequence_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) - data.bounded_sequence_enum2_field().push_back(pytest.dds_type.METAL) - data.bounded_sequence_enum2_field().push_back(pytest.dds_type.STONE) - data.bounded_sequence_enum2_field().push_back(pytest.dds_type.PLASTIC) + data.bounded_sequence_enum_field([pytest.dds_type.Color_RED, pytest.dds_type.Color_BLUE, pytest.dds_type.Color_MAGENTA]) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.Material_METAL) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.Material_STONE) + data.bounded_sequence_enum2_field().push_back(pytest.dds_type.Material_PLASTIC) data.bounded_sequence_struct_field([struct_type1, struct_type2, struct_type3]) data.unbounded_sequence_char_field(['\x01', '\x02', '\x03']) data.unbounded_sequence_uint8_field([254, 255, 1]) @@ -284,10 +284,10 @@ def fill_keyed_complete_test_type(data, cdr_version): data.unbounded_sequence_float_field([1.0, 2.0, 3.0]) data.unbounded_sequence_double_field([1200.5, 1202.5, 3.5]) data.unbounded_sequence_bool_field([False, True, False]) - data.unbounded_sequence_enum_field([pytest.dds_type.RED, pytest.dds_type.BLUE, pytest.dds_type.MAGENTA]) - data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.METAL) - data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.STONE) - data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.PLASTIC) + data.unbounded_sequence_enum_field([pytest.dds_type.Color_RED, pytest.dds_type.Color_BLUE, pytest.dds_type.Color_MAGENTA]) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.Material_METAL) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.Material_STONE) + data.unbounded_sequence_enum2_field().push_back(pytest.dds_type.Material_PLASTIC) data.unbounded_sequence_struct_field([struct_type1, struct_type2, struct_type3]) @@ -305,8 +305,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.double_field() == 1202.5) assert(data.bool_field() == True) assert(data.string_field() == "Test string") - assert(data.enum_field() == pytest.dds_type.MAGENTA) - assert(data.enum2_field() == pytest.dds_type.METAL) + assert(data.enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.enum2_field() == pytest.dds_type.Material_METAL) assert(data.struct_field().char_field() == '\x01') assert(data.struct_field().uint8_field() == 254) assert(data.struct_field().int16_field() == -10) @@ -319,8 +319,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.struct_field().double_field() == 1202.5) assert(data.struct_field().bool_field() == False) assert(data.struct_field().string_field() == "Test string") - assert(data.struct_field().enum_field() == pytest.dds_type.MAGENTA) - assert(data.struct_field().enum2_field() == pytest.dds_type.METAL) + assert(data.struct_field().enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.struct_field().enum2_field() == pytest.dds_type.Material_METAL) if cdr_version == 'v1': assert(data.char_opt_field() == '\x01') assert(data.uint8_opt_field() == 254) @@ -334,7 +334,7 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.double_opt_field() == 1202.5) assert(data.bool_opt_field() == True) assert(data.string_opt_field() == "Test string") - assert(data.enum_opt_field() == pytest.dds_type.MAGENTA) + assert(data.enum_opt_field() == pytest.dds_type.Color_MAGENTA) else: assert(data.char_opt_field().has_value()) assert(data.char_opt_field().get_value() == '\x01') @@ -361,7 +361,7 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.string_opt_field().has_value()) assert(data.string_opt_field().get_value() == "Test string") assert(data.enum_opt_field().has_value()) - assert(data.enum_opt_field().get_value() == pytest.dds_type.MAGENTA) + assert(data.enum_opt_field().get_value() == pytest.dds_type.Color_MAGENTA) assert(not data.enum2_opt_field().has_value()) assert(data.struct_opt_field().has_value()) assert(data.struct_opt_field().char_field() == '\x01') @@ -376,8 +376,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.struct_opt_field().double_field() == 1202.5) assert(data.struct_opt_field().bool_field() == True) assert(data.struct_opt_field().string_field() == "Test string") - assert(data.struct_opt_field().enum_field() == pytest.dds_type.MAGENTA) - assert(data.struct_opt_field().enum2_field() == pytest.dds_type.METAL) + assert(data.struct_opt_field().enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.struct_opt_field().enum2_field() == pytest.dds_type.Material_METAL) assert(data.array_char_field()[0] == '\x01') assert(data.array_char_field()[1] == '\x02') assert(data.array_char_field()[2] == '\x03') @@ -411,12 +411,12 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.array_bool_field()[0] == False) assert(data.array_bool_field()[1] == True) assert(data.array_bool_field()[2] == False) - assert(data.array_enum_field()[0] == pytest.dds_type.RED) - assert(data.array_enum_field()[1] == pytest.dds_type.BLUE) - assert(data.array_enum_field()[2] == pytest.dds_type.MAGENTA) - assert(data.array_enum2_field()[0] == pytest.dds_type.METAL) - assert(data.array_enum2_field()[1] == pytest.dds_type.STONE) - assert(data.array_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.array_enum_field()[0] == pytest.dds_type.Color_RED) + assert(data.array_enum_field()[1] == pytest.dds_type.Color_BLUE) + assert(data.array_enum_field()[2] == pytest.dds_type.Color_MAGENTA) + assert(data.array_enum2_field()[0] == pytest.dds_type.Material_METAL) + assert(data.array_enum2_field()[1] == pytest.dds_type.Material_STONE) + assert(data.array_enum2_field()[2] == pytest.dds_type.Material_PLASTIC) assert(data.array_struct_field()[0].char_field() == '\x01') assert(data.array_struct_field()[0].uint8_field() == 254) assert(data.array_struct_field()[0].int16_field() == -10) @@ -428,8 +428,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.array_struct_field()[0].float_field() == 1.0) assert(data.array_struct_field()[0].double_field() == 1200.5) assert(data.array_struct_field()[0].bool_field() == False) - assert(data.array_struct_field()[0].enum_field() == pytest.dds_type.RED) - assert(data.array_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.array_struct_field()[0].enum_field() == pytest.dds_type.Color_RED) + assert(data.array_struct_field()[0].enum2_field() == pytest.dds_type.Material_STONE) assert(data.array_struct_field()[1].char_field() == '\x02') assert(data.array_struct_field()[1].uint8_field() == 255) assert(data.array_struct_field()[1].int16_field() == 10) @@ -441,8 +441,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.array_struct_field()[1].float_field() == 2.0) assert(data.array_struct_field()[1].double_field() == 1202.5) assert(data.array_struct_field()[1].bool_field() == True) - assert(data.array_struct_field()[1].enum_field() == pytest.dds_type.BLUE) - assert(data.array_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.array_struct_field()[1].enum_field() == pytest.dds_type.Color_BLUE) + assert(data.array_struct_field()[1].enum2_field() == pytest.dds_type.Material_PLASTIC) assert(data.array_struct_field()[2].char_field() == '\x03') assert(data.array_struct_field()[2].uint8_field() == 1) assert(data.array_struct_field()[2].int16_field() == -20) @@ -454,8 +454,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.array_struct_field()[2].float_field() == 3.0) assert(data.array_struct_field()[2].double_field() == 3.5) assert(data.array_struct_field()[2].bool_field() == False) - assert(data.array_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) - assert(data.array_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + assert(data.array_struct_field()[2].enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.array_struct_field()[2].enum2_field() == pytest.dds_type.Material_METAL) assert(data.bounded_sequence_char_field().size() == 3) assert(data.bounded_sequence_char_field()[0] == '\x01') assert(data.bounded_sequence_char_field()[1] == '\x02') @@ -501,13 +501,13 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.bounded_sequence_bool_field()[1] == True) assert(data.bounded_sequence_bool_field()[2] == False) assert(data.bounded_sequence_enum_field().size() == 3) - assert(data.bounded_sequence_enum_field()[0] == pytest.dds_type.RED) - assert(data.bounded_sequence_enum_field()[1] == pytest.dds_type.BLUE) - assert(data.bounded_sequence_enum_field()[2] == pytest.dds_type.MAGENTA) + assert(data.bounded_sequence_enum_field()[0] == pytest.dds_type.Color_RED) + assert(data.bounded_sequence_enum_field()[1] == pytest.dds_type.Color_BLUE) + assert(data.bounded_sequence_enum_field()[2] == pytest.dds_type.Color_MAGENTA) assert(data.bounded_sequence_enum2_field().size() == 3) - assert(data.bounded_sequence_enum2_field()[0] == pytest.dds_type.METAL) - assert(data.bounded_sequence_enum2_field()[1] == pytest.dds_type.STONE) - assert(data.bounded_sequence_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.bounded_sequence_enum2_field()[0] == pytest.dds_type.Material_METAL) + assert(data.bounded_sequence_enum2_field()[1] == pytest.dds_type.Material_STONE) + assert(data.bounded_sequence_enum2_field()[2] == pytest.dds_type.Material_PLASTIC) assert(data.bounded_sequence_struct_field().size() == 3) assert(data.bounded_sequence_struct_field()[0].char_field() == '\x01') assert(data.bounded_sequence_struct_field()[0].uint8_field() == 254) @@ -520,8 +520,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.bounded_sequence_struct_field()[0].float_field() == 1.0) assert(data.bounded_sequence_struct_field()[0].double_field() == 1200.5) assert(data.bounded_sequence_struct_field()[0].bool_field() == False) - assert(data.bounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.RED) - assert(data.bounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.bounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.Color_RED) + assert(data.bounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.Material_STONE) assert(data.bounded_sequence_struct_field()[1].char_field() == '\x02') assert(data.bounded_sequence_struct_field()[1].uint8_field() == 255) assert(data.bounded_sequence_struct_field()[1].int16_field() == 10) @@ -533,8 +533,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.bounded_sequence_struct_field()[1].float_field() == 2.0) assert(data.bounded_sequence_struct_field()[1].double_field() == 1202.5) assert(data.bounded_sequence_struct_field()[1].bool_field() == True) - assert(data.bounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.BLUE) - assert(data.bounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.bounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.Color_BLUE) + assert(data.bounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.Material_PLASTIC) assert(data.bounded_sequence_struct_field()[2].char_field() == '\x03') assert(data.bounded_sequence_struct_field()[2].uint8_field() == 1) assert(data.bounded_sequence_struct_field()[2].int16_field() == -20) @@ -546,8 +546,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.bounded_sequence_struct_field()[2].float_field() == 3.0) assert(data.bounded_sequence_struct_field()[2].double_field() == 3.5) assert(data.bounded_sequence_struct_field()[2].bool_field() == False) - assert(data.bounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) - assert(data.bounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + assert(data.bounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.bounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.Material_METAL) assert(data.unbounded_sequence_char_field().size() == 3) assert(data.unbounded_sequence_char_field()[0] == '\x01') assert(data.unbounded_sequence_char_field()[1] == '\x02') @@ -593,13 +593,13 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.unbounded_sequence_bool_field()[1] == True) assert(data.unbounded_sequence_bool_field()[2] == False) assert(data.unbounded_sequence_enum_field().size() == 3) - assert(data.unbounded_sequence_enum_field()[0] == pytest.dds_type.RED) - assert(data.unbounded_sequence_enum_field()[1] == pytest.dds_type.BLUE) - assert(data.unbounded_sequence_enum_field()[2] == pytest.dds_type.MAGENTA) + assert(data.unbounded_sequence_enum_field()[0] == pytest.dds_type.Color_RED) + assert(data.unbounded_sequence_enum_field()[1] == pytest.dds_type.Color_BLUE) + assert(data.unbounded_sequence_enum_field()[2] == pytest.dds_type.Color_MAGENTA) assert(data.unbounded_sequence_enum2_field().size() == 3) - assert(data.unbounded_sequence_enum2_field()[0] == pytest.dds_type.METAL) - assert(data.unbounded_sequence_enum2_field()[1] == pytest.dds_type.STONE) - assert(data.unbounded_sequence_enum2_field()[2] == pytest.dds_type.PLASTIC) + assert(data.unbounded_sequence_enum2_field()[0] == pytest.dds_type.Material_METAL) + assert(data.unbounded_sequence_enum2_field()[1] == pytest.dds_type.Material_STONE) + assert(data.unbounded_sequence_enum2_field()[2] == pytest.dds_type.Material_PLASTIC) assert(data.unbounded_sequence_struct_field().size() == 3) assert(data.unbounded_sequence_struct_field()[0].char_field() == '\x01') assert(data.unbounded_sequence_struct_field()[0].uint8_field() == 254) @@ -612,8 +612,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.unbounded_sequence_struct_field()[0].float_field() == 1.0) assert(data.unbounded_sequence_struct_field()[0].double_field() == 1200.5) assert(data.unbounded_sequence_struct_field()[0].bool_field() == False) - assert(data.unbounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.RED) - assert(data.unbounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.STONE) + assert(data.unbounded_sequence_struct_field()[0].enum_field() == pytest.dds_type.Color_RED) + assert(data.unbounded_sequence_struct_field()[0].enum2_field() == pytest.dds_type.Material_STONE) assert(data.unbounded_sequence_struct_field()[1].char_field() == '\x02') assert(data.unbounded_sequence_struct_field()[1].uint8_field() == 255) assert(data.unbounded_sequence_struct_field()[1].int16_field() == 10) @@ -625,8 +625,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.unbounded_sequence_struct_field()[1].float_field() == 2.0) assert(data.unbounded_sequence_struct_field()[1].double_field() == 1202.5) assert(data.unbounded_sequence_struct_field()[1].bool_field() == True) - assert(data.unbounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.BLUE) - assert(data.unbounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.PLASTIC) + assert(data.unbounded_sequence_struct_field()[1].enum_field() == pytest.dds_type.Color_BLUE) + assert(data.unbounded_sequence_struct_field()[1].enum2_field() == pytest.dds_type.Material_PLASTIC) assert(data.unbounded_sequence_struct_field()[2].char_field() == '\x03') assert(data.unbounded_sequence_struct_field()[2].uint8_field() == 1) assert(data.unbounded_sequence_struct_field()[2].int16_field() == -20) @@ -638,8 +638,8 @@ def check_keyed_complete_test_type(data, cdr_version): assert(data.unbounded_sequence_struct_field()[2].float_field() == 3.0) assert(data.unbounded_sequence_struct_field()[2].double_field() == 3.5) assert(data.unbounded_sequence_struct_field()[2].bool_field() == False) - assert(data.unbounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.MAGENTA) - assert(data.unbounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.METAL) + assert(data.unbounded_sequence_struct_field()[2].enum_field() == pytest.dds_type.Color_MAGENTA) + assert(data.unbounded_sequence_struct_field()[2].enum2_field() == pytest.dds_type.Material_METAL) def test_create_querycondition(datareader): @@ -656,7 +656,7 @@ def test_create_querycondition(datareader): querycondition = datareader.create_querycondition( sv, vv, iv, "", qp) assert(querycondition is None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.delete_contained_entities()) @@ -673,7 +673,7 @@ def test_create_readcondition(datareader): readcondition = datareader.create_readcondition( sv, vv, iv) assert(readcondition is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.delete_readcondition(readcondition)) @@ -684,7 +684,7 @@ def test_get_first_untaken(transient_datareader_qos, datareader, - DataReader::get_first_untaken_info """ info = fastdds.SampleInfo() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.get_first_untaken_info(info)) qos = datareader.get_qos() assert(fastdds.TRANSIENT_LOCAL_DURABILITY_QOS == qos.durability().kind) @@ -697,7 +697,7 @@ def test_get_first_untaken(transient_datareader_qos, datareader, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_first_untaken_info(info)) assert(info.valid_data) @@ -728,7 +728,7 @@ def test_get_key_value(test_keyed_type, datareader): sample = pytest.dds_type.KeyedCompleteTestType() sample.id(255) ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datareader.get_key_value(sample, ih)) assert(fastdds.c_InstanceHandle_Unknown == ih) @@ -745,7 +745,7 @@ def test_get_set_listener(datareader): # Overload 1 listener = DataReaderListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.set_listener(listener)) assert(datareader.get_listener() == listener) assert(fastdds.StatusMask.all() == @@ -757,13 +757,13 @@ def test(status_mask_1, status_mask_2): """ listener = DataReaderListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.set_listener(listener, status_mask_1)) assert(datareader.get_listener() == listener) assert(status_mask_1 == datareader.get_status_mask()) listener = DataReaderListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.set_listener(listener, status_mask_2)) assert(datareader.get_listener() == listener) assert(status_mask_2 == datareader.get_status_mask()) @@ -835,7 +835,7 @@ def test_get_listening_locators(datareader): - DataReader::get_listening_locators """ locator_list = fastdds.LocatorList() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_listening_locators(locator_list)) assert(0 < locator_list.size()) @@ -846,7 +846,7 @@ def test_get_liveliness_changed_status(datareader): - DataReader::get_liveliness_changed_status """ status = fastdds.LivelinessChangedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_liveliness_changed_status(status)) assert(0 == status.alive_count) assert(0 == status.alive_count_change) @@ -862,7 +862,7 @@ def test_get_matched_publication_data(datareader): """ pub_data = fastdds.PublicationBuiltinTopicData() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datareader.get_matched_publication_data(pub_data, ih)) @@ -872,7 +872,7 @@ def test_get_matched_publications(datareader): - DataReader::get_matched_publications """ ihs = fastdds.InstanceHandleVector() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datareader.get_matched_publications(ihs)) @@ -882,7 +882,7 @@ def test_get_requested_deadline_missed_status(datareader): - DataReader::get_requested_deadline_missed_status """ status = fastdds.RequestedDeadlineMissedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_requested_deadline_missed_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -895,7 +895,7 @@ def test_get_requested_incompatible_qos_status(datareader): - DataReader::get_requested_deadline_missed_status """ status = fastdds.RequestedIncompatibleQosStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_requested_incompatible_qos_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -914,7 +914,7 @@ def test_get_sample_lost_status(datareader): - DataReader::get_sample_lost_status """ status = fastdds.SampleLostStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_sample_lost_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -926,7 +926,7 @@ def test_get_sample_rejected_status(datareader): - DataReader::get_sample_rejected_status """ status = fastdds.SampleRejectedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_sample_rejected_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -938,7 +938,7 @@ def test_get_subscription_matched_status(datareader): - DataReader::get_subscription_matched_status """ status = fastdds.SubscriptionMatchedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.get_subscription_matched_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -997,7 +997,7 @@ def test_is_sample_valid(transient_datareader_qos, datareader, fastdds.Duration_t(5, 0))) data = pytest.dds_type.CompleteTestType() info = fastdds.SampleInfo() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.read_next_sample(data, info)) assert(datareader.is_sample_valid(data, info)) assert(sample.int16_field() == data.int16_field()) @@ -1023,7 +1023,7 @@ def test_lookup_instance(transient_datareader_qos, test_keyed_type, datareader, # Test when instance is registered writer_ih = datawriter.register_instance(sample) assert(fastdds.c_InstanceHandle_Unknown != writer_ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.write(sample, writer_ih)) assert(datareader.wait_for_unread_message( @@ -1041,7 +1041,7 @@ def test_read(transient_datareader_qos, datareader, """ data_seq = pytest.dds_type.CompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.read( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1055,7 +1055,7 @@ def test_read(transient_datareader_qos, datareader, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.read( + assert(fastdds.RETCODE_OK == datareader.read( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, fastdds.ANY_INSTANCE_STATE)) @@ -1066,7 +1066,7 @@ def test_read(transient_datareader_qos, datareader, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1080,7 +1080,7 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, data_seq = pytest.dds_type.KeyedCompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_BAD_PARAMETER == + assert(fastdds.RETCODE_BAD_PARAMETER == datareader.read_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1091,11 +1091,11 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, sample = pytest.dds_type.KeyedCompleteTestType() fill_keyed_complete_test_type(sample, cdr_version) ih = datawriter.register_instance(sample) - assert(datawriter.write(sample, ih)) + assert(fastdds.RETCODE_OK == datawriter.write(sample, ih)) assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.read_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1107,7 +1107,7 @@ def test_read_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1121,7 +1121,7 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, data_seq = pytest.dds_type.KeyedCompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.read_next_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1135,7 +1135,7 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.read_next_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1147,7 +1147,7 @@ def test_read_next_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1159,7 +1159,7 @@ def test_read_next_sample(transient_datareader_qos, datareader, """ data = pytest.dds_type.CompleteTestType() info = fastdds.SampleInfo() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.read_next_sample( data, info)) @@ -1169,7 +1169,7 @@ def test_read_next_sample(transient_datareader_qos, datareader, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.read_next_sample(data, info)) assert(info.valid_data) assert(0 < info.source_timestamp.to_ns()) @@ -1187,7 +1187,7 @@ def test_take(transient_datareader_qos, datareader, """ data_seq = pytest.dds_type.CompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.take( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1201,7 +1201,7 @@ def test_take(transient_datareader_qos, datareader, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == datareader.take( + assert(fastdds.RETCODE_OK == datareader.take( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, fastdds.ANY_INSTANCE_STATE)) @@ -1212,7 +1212,7 @@ def test_take(transient_datareader_qos, datareader, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1226,7 +1226,7 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, data_seq = pytest.dds_type.KeyedCompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_BAD_PARAMETER == + assert(fastdds.RETCODE_BAD_PARAMETER == datareader.take_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1237,11 +1237,11 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, sample = pytest.dds_type.KeyedCompleteTestType() fill_keyed_complete_test_type(sample, cdr_version) ih = datawriter.register_instance(sample) - assert(datawriter.write(sample, ih)) + assert(fastdds.RETCODE_OK == datawriter.write(sample, ih)) assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.take_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1253,7 +1253,7 @@ def test_take_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1267,7 +1267,7 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, data_seq = pytest.dds_type.KeyedCompleteTestTypeSeq() info_seq = fastdds.SampleInfoSeq() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.take_next_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1281,7 +1281,7 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.take_next_instance( data_seq, info_seq, fastdds.LENGTH_UNLIMITED, ih, fastdds.ANY_SAMPLE_STATE, fastdds.ANY_VIEW_STATE, @@ -1293,7 +1293,7 @@ def test_take_next_instance(transient_datareader_qos, test_keyed_type, assert(0 < info_seq[0].reception_timestamp.to_ns()) assert(sample == data_seq[0]) check_keyed_complete_test_type(data_seq[0], cdr_version) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.return_loan(data_seq, info_seq)) @@ -1305,7 +1305,7 @@ def test_take_next_sample(transient_datareader_qos, datareader, """ data = pytest.dds_type.CompleteTestType() info = fastdds.SampleInfo() - assert(fastdds.ReturnCode_t.RETCODE_NO_DATA == + assert(fastdds.RETCODE_NO_DATA == datareader.take_next_sample( data, info)) @@ -1315,7 +1315,7 @@ def test_take_next_sample(transient_datareader_qos, datareader, assert(datareader.wait_for_unread_message( fastdds.Duration_t(5, 0))) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.take_next_sample(data, info)) assert(info.valid_data) assert(0 < info.source_timestamp.to_ns()) @@ -1339,7 +1339,7 @@ def test_wait_for_historical_data(datareader): This test checks: - DataReader::wait_for_historical_data """ - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datareader.wait_for_historical_data( fastdds.Duration_t(0, 100))) @@ -1365,19 +1365,19 @@ def create_datareader(): writer_topic, fastdds.DATAWRITER_QOS_DEFAULT) time.sleep(1) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_topic(writer_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(writer_participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) diff --git a/fastdds_python/test/api/test_datawriter.py b/fastdds_python/test/api/test_datawriter.py index 457eddc7..1e73dd82 100644 --- a/fastdds_python/test/api/test_datawriter.py +++ b/fastdds_python/test/api/test_datawriter.py @@ -72,14 +72,14 @@ def datawriter(participant, topic, publisher, datawriter_qos): yield datawriter - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -107,7 +107,7 @@ def test_assert_liveliness(manual_liveliness_datawriter_qos, datawriter): This test checks: - DataWriter::assert_liveliness """ - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.assert_liveliness()) @@ -119,7 +119,7 @@ def test_clear_history(keep_all_datawriter_qos, datawriter): sample = pytest.dds_type.CompleteTestType() sample.int16_field(4) assert(datawriter.write(sample)) - assert([fastdds.ReturnCode_t.RETCODE_OK, 1] == + assert([fastdds.RETCODE_OK, 1] == datawriter.clear_history()) @@ -140,9 +140,9 @@ def test_dispose(test_keyed_type, datawriter): ih2 = datawriter.register_instance(sample2) assert(fastdds.c_InstanceHandle_Unknown != ih2) assert(ih2 != ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.dispose(sample, ih)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.dispose(sample2, ih2)) # Overload 2 @@ -153,7 +153,7 @@ def test_dispose(test_keyed_type, datawriter): timestamp.seconds = now.second ih = datawriter.register_instance_w_timestamp(sample, timestamp) assert(fastdds.c_InstanceHandle_Unknown != ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.dispose_w_timestamp(sample, ih, timestamp)) @@ -188,39 +188,39 @@ def test_get_key_value(test_keyed_type, datawriter): # Check wrong handle test_sample = pytest.dds_type.KeyedCompleteTestType() - assert(fastdds.ReturnCode_t.RETCODE_BAD_PARAMETER == + assert(fastdds.RETCODE_BAD_PARAMETER == datawriter.get_key_value(test_sample, fastdds.c_InstanceHandle_Unknown)) # Check wrong sample - assert(fastdds.ReturnCode_t.RETCODE_BAD_PARAMETER == + assert(fastdds.RETCODE_BAD_PARAMETER == datawriter.get_key_value(None, ih)) # Check correct case test_sample = pytest.dds_type.KeyedCompleteTestType() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_key_value(test_sample, ih)) assert(test_sample.id() == sample.id()); # Calling get_key_value on an unregistered instance should fail test_sample = pytest.dds_type.KeyedCompleteTestType() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.unregister_instance(sample, ih)) - assert(fastdds.ReturnCode_t.RETCODE_BAD_PARAMETER == + assert(fastdds.RETCODE_BAD_PARAMETER == datawriter.get_key_value(test_sample, ih)) # Calling get_key_value with a valid instance should work test_sample = pytest.dds_type.KeyedCompleteTestType() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.write(sample, fastdds.c_InstanceHandle_Unknown)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_key_value(test_sample, ih)) assert(test_sample.id() == sample.id()); # Calling get_key_value on a disposed instance should work test_sample = pytest.dds_type.KeyedCompleteTestType() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.dispose(sample, ih)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_key_value(test_sample, ih)) assert(test_sample.id() == sample.id()); @@ -231,7 +231,7 @@ def test_get_sending_locators(datawriter): - DataWriter::get_sending_locators """ locator_list = fastdds.LocatorList() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_sending_locators(locator_list)) assert(0 < locator_list.size()) @@ -248,7 +248,7 @@ def test_get_set_listener(datawriter): # Overload 1 listener = DataWriterListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.set_listener(listener)) assert(datawriter.get_listener() == listener) assert(fastdds.StatusMask.all() == datawriter.get_status_mask()) @@ -259,13 +259,13 @@ def test(status_mask_1, status_mask_2): """ listener = DataWriterListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.set_listener(listener, status_mask_1)) assert(datawriter.get_listener() == listener) assert(status_mask_1 == datawriter.get_status_mask()) listener = DataWriterListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.set_listener(listener, status_mask_2)) assert(datawriter.get_listener() == listener) assert(status_mask_2 == datawriter.get_status_mask()) @@ -337,7 +337,7 @@ def test_get_liveliness_lost_status(datawriter): - DataWriter::get_liveliness_lost_status """ status = fastdds.LivelinessLostStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_liveliness_lost_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -350,7 +350,7 @@ def test_get_matched_subscription_data(datawriter): """ sub_data = fastdds.SubscriptionBuiltinTopicData() ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datawriter.get_matched_subscription_data(sub_data, ih)) @@ -360,7 +360,7 @@ def test_get_matched_subscriptions(datawriter): - DataWriter::get_matched_subscriptions """ ihs = fastdds.InstanceHandleVector() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == datawriter.get_matched_subscriptions(ihs)) @@ -370,7 +370,7 @@ def test_get_offered_deadline_missed_status(datawriter): - DataWriter::get_offered_deadline_missed_status """ status = fastdds.OfferedDeadlineMissedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_offered_deadline_missed_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -383,7 +383,7 @@ def test_get_offered_incompatible_qos_status(datawriter): - DataWriter::get_offered_deadline_missed_status """ status = fastdds.OfferedIncompatibleQosStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_offered_incompatible_qos_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -402,7 +402,7 @@ def test_get_publication_matched_status(datawriter): - DataWriter::get_publication_matched_status """ status = fastdds.PublicationMatchedStatus() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.get_publication_matched_status(status)) assert(0 == status.total_count) assert(0 == status.total_count_change) @@ -469,11 +469,11 @@ def test_register_instance(test_keyed_type, datawriter): ih2 = datawriter.register_instance(sample2) assert(fastdds.c_InstanceHandle_Unknown != ih2) assert(ih2 != ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.unregister_instance(sample, ih)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.unregister_instance(sample2, ih2)) - assert(fastdds.ReturnCode_t.RETCODE_PRECONDITION_NOT_MET == + assert(fastdds.RETCODE_PRECONDITION_NOT_MET == datawriter.unregister_instance( sample, fastdds.c_InstanceHandle_Unknown)) @@ -485,7 +485,7 @@ def test_register_instance(test_keyed_type, datawriter): timestamp.seconds = now.second ih = datawriter.register_instance_w_timestamp(sample, timestamp) assert(fastdds.c_InstanceHandle_Unknown != ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.unregister_instance_w_timestamp(sample, ih, timestamp)) @@ -498,13 +498,13 @@ def test_wait_for_acknowledgments(test_keyed_type, datawriter): sample = pytest.dds_type.KeyedCompleteTestType() sample.id(3) assert(datawriter.write(sample)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.wait_for_acknowledgments(fastdds.Duration_t(1, 0))) # Overload 2 ih = datawriter.register_instance(sample) assert(fastdds.c_InstanceHandle_Unknown != ih) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.wait_for_acknowledgments( sample, ih, fastdds.Duration_t(1, 0))) @@ -536,11 +536,11 @@ def test_write(test_keyed_type, datawriter): sample = pytest.dds_type.KeyedCompleteTestType() sample.id(1) ih = fastdds.InstanceHandle_t() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.write(sample, ih)) ih = fastdds.InstanceHandle_t() ih.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) - assert(fastdds.ReturnCode_t.RETCODE_PRECONDITION_NOT_MET == + assert(fastdds.RETCODE_PRECONDITION_NOT_MET == datawriter.write(sample, ih)) # Overload 4 @@ -550,7 +550,7 @@ def test_write(test_keyed_type, datawriter): now = datetime.datetime.now().time() timestamp = fastdds.Time_t() timestamp.seconds = now.second - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datawriter.write_w_timestamp(sample, ih, timestamp)) def test_listener_ownership(participant, reader_participant, topic, @@ -566,19 +566,19 @@ def create_datawriter(): reader_topic, fastdds.DATAREADER_QOS_DEFAULT) time.sleep(1) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == reader_participant.delete_topic(reader_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == reader_participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(reader_participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) diff --git a/fastdds_python/test/api/test_domainparticipant.py b/fastdds_python/test/api/test_domainparticipant.py index 1d8ea006..7e7fa9d8 100644 --- a/fastdds_python/test/api/test_domainparticipant.py +++ b/fastdds_python/test/api/test_domainparticipant.py @@ -58,7 +58,7 @@ def participant(participant_qos): yield participant - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -74,7 +74,7 @@ def test_contains_entity(participant): assert(participant.contains_entity(fastdds.InstanceHandle_t()) is False) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) @@ -95,7 +95,7 @@ def test_create_publisher(participant): assert(publisher is not None) assert(publisher.is_enabled()) assert(fastdds.StatusMask.all() == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) # Overload 2 @@ -104,7 +104,7 @@ def test_create_publisher(participant): assert(publisher is not None) assert(publisher.is_enabled()) assert(fastdds.StatusMask.all() == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) def test(status_mask_1, status_mask_2, listnr=None): @@ -116,14 +116,14 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(publisher is not None) assert(publisher.is_enabled()) assert(status_mask_1 == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) publisher = participant.create_publisher( fastdds.PUBLISHER_QOS_DEFAULT, listnr, status_mask_2) assert(publisher is not None) assert(publisher.is_enabled()) assert(status_mask_2 == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) # Overload 3: Different status masks @@ -213,7 +213,7 @@ def test_create_publisher_with_profile(participant): qos = publisher.get_qos() assert('partition_name_c' == qos.partition()[0]) assert(fastdds.StatusMask.all() == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) # Overload 2 @@ -224,7 +224,7 @@ def test_create_publisher_with_profile(participant): qos = publisher.get_qos() assert('partition_name_c' == qos.partition()[0]) assert(fastdds.StatusMask.all() == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) def test(status_mask_1, status_mask_2, listnr=None): @@ -238,7 +238,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = publisher.get_qos() assert('partition_name_c' == qos.partition()[0]) assert(status_mask_1 == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) publisher = participant.create_publisher_with_profile( 'test_publisher_profile', listnr, status_mask_2) @@ -247,7 +247,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = publisher.get_qos() assert('partition_name_c' == qos.partition()[0]) assert(status_mask_2 == publisher.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) # Overload 3: Different status masks @@ -329,7 +329,7 @@ def test_create_subscriber(participant): assert(subscriber is not None) assert(subscriber.is_enabled()) assert(fastdds.StatusMask.all() == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) # Overload 2 @@ -338,7 +338,7 @@ def test_create_subscriber(participant): assert(subscriber is not None) assert(subscriber.is_enabled()) assert(fastdds.StatusMask.all() == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) def test(status_mask_1, status_mask_2, listnr=None): @@ -350,14 +350,14 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(subscriber is not None) assert(subscriber.is_enabled()) assert(status_mask_1 == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) subscriber = participant.create_subscriber( fastdds.SUBSCRIBER_QOS_DEFAULT, listnr, status_mask_2) assert(subscriber is not None) assert(subscriber.is_enabled()) assert(status_mask_2 == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) # Overload 3: Different status masks @@ -447,7 +447,7 @@ def test_create_subscriber_with_profile(participant): qos = subscriber.get_qos() assert('partition_name_b' == qos.partition()[0]) assert(fastdds.StatusMask.all() == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) # Overload 2 @@ -458,7 +458,7 @@ def test_create_subscriber_with_profile(participant): qos = subscriber.get_qos() assert('partition_name_b' == qos.partition()[0]) assert(fastdds.StatusMask.all() == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) def test(status_mask_1, status_mask_2, listnr=None): @@ -472,7 +472,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = subscriber.get_qos() assert('partition_name_b' == qos.partition()[0]) assert(status_mask_1 == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) subscriber = participant.create_subscriber_with_profile( 'test_subscriber_profile', listnr, status_mask_2) @@ -481,7 +481,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = subscriber.get_qos() assert('partition_name_b' == qos.partition()[0]) assert(status_mask_2 == subscriber.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) # Overload 3: Different status masks @@ -567,7 +567,7 @@ def test_create_and_delete_topic(participant): assert(topic is None) # Now register the type - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.register_type(test_type, test_type.get_type_name())) # Overload 1 - Success @@ -576,7 +576,7 @@ def test_create_and_delete_topic(participant): assert(topic is not None) assert(topic.is_enabled()) assert(fastdds.StatusMask.all() == topic.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) # Overload 2 @@ -586,7 +586,7 @@ def test_create_and_delete_topic(participant): assert(topic is not None) assert(topic.is_enabled()) assert(fastdds.StatusMask.all() == topic.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) def test(status_mask_1, status_mask_2, listnr=None): @@ -599,7 +599,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(topic is not None) assert(topic.is_enabled()) assert(status_mask_1 == topic.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) topic = participant.create_topic( "Complete", test_type.get_type_name(), @@ -607,7 +607,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(topic is not None) assert(topic.is_enabled()) assert(status_mask_2 == topic.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) # Overload 3: Different status masks @@ -680,7 +680,7 @@ def test_delete_contained_entities(participant): fastdds.SUBSCRIBER_QOS_DEFAULT) assert(subscriber is not None) test_type = fastdds.TypeSupport(pytest.dds_type.CompleteTestTypePubSubType()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.register_type(test_type, test_type.get_type_name())) topic = participant.create_topic( "Complete", test_type.get_type_name(), fastdds.TOPIC_QOS_DEFAULT) @@ -688,10 +688,10 @@ def test_delete_contained_entities(participant): # Cannot delete participant without deleting its contained entities factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_PRECONDITION_NOT_MET == + assert(fastdds.RETCODE_PRECONDITION_NOT_MET == factory.delete_participant(participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_contained_entities()) @@ -702,12 +702,12 @@ def test_enable(not_autoenable_factory, participant): - DomainParticipant::is_enabled """ assert(not participant.is_enabled()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.enable()) assert(participant.is_enabled()) factory_qos = fastdds.DomainParticipantFactoryQos() factory_qos.entity_factory().autoenable_created_entities = True - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == not_autoenable_factory.set_qos(factory_qos)) @@ -717,7 +717,7 @@ def test_find_topic(participant): - DomainParticipant::find_topic """ test_type = fastdds.TypeSupport(pytest.dds_type.CompleteTestTypePubSubType()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.register_type(test_type, test_type.get_type_name())) topic = participant.create_topic( @@ -727,10 +727,10 @@ def test_find_topic(participant): topic_copy = participant.find_topic("Complete", fastdds.Duration_t(1, 0)) assert(topic.get_type_name() == topic_copy.get_type_name()) assert(topic.get_name() == topic_copy.get_name()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic_copy)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) @@ -756,10 +756,10 @@ def test_get_discovered_participants(participant): assert(participant2 is not None) ihs = fastdds.InstanceHandleVector() - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == participant.get_discovered_participants(ihs)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant2)) @@ -776,7 +776,7 @@ def test_get_domain_id(): assert(32 == participant.get_domain_id()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -816,7 +816,7 @@ def test_get_set_listener(participant): # Overload 1 listener = DomainParticipantListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.set_listener(listener)) assert(participant.get_listener() == listener) assert(fastdds.StatusMask.all() == participant.get_status_mask()) @@ -827,13 +827,13 @@ def test(status_mask_1, status_mask_2): """ listener = DomainParticipantListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.set_listener(listener, status_mask_1)) assert(participant.get_listener() == listener) assert(status_mask_1 == participant.get_status_mask()) listener = DomainParticipantListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.set_listener(listener, status_mask_2)) assert(participant.get_listener() == listener) assert(status_mask_2 == participant.get_status_mask()) @@ -915,16 +915,16 @@ def test_get_set_qos(participant): - DomainParticipant::set_qos """ qos = fastdds.DomainParticipantQos() - assert(fastdds.ReturnCode_t.RETCODE_OK == participant.get_qos(qos)) + assert(fastdds.RETCODE_OK == participant.get_qos(qos)) qos.user_data().push_back(1) qos.user_data().push_back(2) assert(2 == len(qos.user_data())) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.set_qos(qos)) qos2 = fastdds.DomainParticipantQos() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.get_qos(qos2)) assert(2 == len(qos2.user_data())) assert(1 == qos2.user_data()[0]) @@ -938,7 +938,7 @@ def test_ignore_participant(participant): """ ih = fastdds.InstanceHandle_t() ih.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.ignore_participant(ih)) def test_ignore_publication(participant): @@ -948,7 +948,7 @@ def test_ignore_publication(participant): """ ih = fastdds.InstanceHandle_t() ih.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == participant.ignore_publication(ih)) @@ -959,7 +959,7 @@ def test_ignore_subscription(participant): """ ih = fastdds.InstanceHandle_t() ih.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == participant.ignore_subscription(ih)) @@ -970,7 +970,7 @@ def test_ignore_topic(participant): """ ih = fastdds.InstanceHandle_t() ih.value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == participant.ignore_topic(ih)) @@ -980,7 +980,7 @@ def test_lookup_topicdescription(participant): - DomainParticipant::lookup_topicdescription """ test_type = fastdds.TypeSupport(pytest.dds_type.CompleteTestTypePubSubType()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.register_type(test_type, test_type.get_type_name())) topic = participant.create_topic( @@ -992,7 +992,7 @@ def test_lookup_topicdescription(participant): assert(topic.get_type_name() == topic_desc.get_type_name()) assert(topic.get_name() == topic_desc.get_name()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) @@ -1008,7 +1008,7 @@ def second_participant(): participant = factory.create_participant( 0, fastdds.PARTICIPANT_QOS_DEFAULT) time.sleep(1) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant2)) diff --git a/fastdds_python/test/api/test_domainparticipantfactory.py b/fastdds_python/test/api/test_domainparticipantfactory.py index 2ae066eb..501fdbed 100644 --- a/fastdds_python/test/api/test_domainparticipantfactory.py +++ b/fastdds_python/test/api/test_domainparticipantfactory.py @@ -18,7 +18,7 @@ def test_create_participant(): assert(participant.is_enabled()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) assert(participant is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) # Overload 2 @@ -28,7 +28,7 @@ def test_create_participant(): assert(participant is not None) assert(participant.is_enabled()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) def test(status_mask_1, status_mask_2, listnr=None): @@ -40,14 +40,14 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(participant is not None) assert(participant.is_enabled()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant( 0, fastdds.PARTICIPANT_QOS_DEFAULT, listnr, status_mask_2) assert(participant is not None) assert(participant.is_enabled()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) # Overload 3: Different status masks @@ -140,7 +140,7 @@ def test_create_participant_with_profile(): qos = participant.get_qos() assert('test_name' == qos.name()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant_with_profile( 0, 'test_participant_profile') @@ -150,7 +150,7 @@ def test_create_participant_with_profile(): qos = participant.get_qos() assert('test_name' == qos.name()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) # Overload 2 @@ -163,7 +163,7 @@ def test_create_participant_with_profile(): qos = participant.get_qos() assert('test_name' == qos.name()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant_with_profile( 0, 'test_participant_profile', listener) @@ -173,7 +173,7 @@ def test_create_participant_with_profile(): qos = participant.get_qos() assert('test_name' == qos.name()) assert(fastdds.StatusMask.all() == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) def test(status_mask_1, status_mask_2, listnr=None): @@ -188,7 +188,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = participant.get_qos() assert('test_name' == qos.name()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant_with_profile( 0, 'test_participant_profile', listnr, status_mask_1) @@ -198,7 +198,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = participant.get_qos() assert('test_name' == qos.name()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant_with_profile( 'test_participant_profile', listnr, status_mask_2) @@ -208,7 +208,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = participant.get_qos() assert('test_name' == qos.name()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) participant = factory.create_participant_with_profile( 0, 'test_participant_profile', listnr, status_mask_2) @@ -218,7 +218,7 @@ def test(status_mask_1, status_mask_2, listnr=None): qos = participant.get_qos() assert('test_name' == qos.name()) assert(status_mask_1 == participant.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) # Overload 3: Different status masks diff --git a/fastdds_python/test/api/test_publisher.py b/fastdds_python/test/api/test_publisher.py index 69f01f48..e87b4d05 100644 --- a/fastdds_python/test/api/test_publisher.py +++ b/fastdds_python/test/api/test_publisher.py @@ -43,12 +43,12 @@ def publisher(participant, topic): yield publisher - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -88,9 +88,9 @@ def test_coherent_changes(publisher): - Publisher::begin_coherent_changes - Publisher::end_coherent_changes """ - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == publisher.begin_coherent_changes()) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == publisher.end_coherent_changes()) @@ -112,7 +112,7 @@ def test_create_datawriter(topic, publisher): assert(datawriter is not None) assert(datawriter.is_enabled()) assert(fastdds.StatusMask.all() == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) # Overload 2 @@ -121,7 +121,7 @@ def test_create_datawriter(topic, publisher): assert(datawriter is not None) assert(datawriter.is_enabled()) assert(fastdds.StatusMask.all() == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) def test(status_mask_1, status_mask_2, listnr=None): @@ -133,14 +133,14 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(datawriter is not None) assert(datawriter.is_enabled()) assert(status_mask_1 == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) datawriter = publisher.create_datawriter( topic, fastdds.DATAWRITER_QOS_DEFAULT, listnr, status_mask_2) assert(datawriter is not None) assert(datawriter.is_enabled()) assert(status_mask_2 == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) # Overload 3: Different status masks @@ -231,7 +231,7 @@ def test_create_datawriter_with_profile(topic, publisher): assert(fastdds.VOLATILE_DURABILITY_QOS == qos.durability().kind) assert(fastdds.StatusMask.all() == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) # Overload 2 @@ -243,7 +243,7 @@ def test_create_datawriter_with_profile(topic, publisher): assert(fastdds.VOLATILE_DURABILITY_QOS == qos.durability().kind) assert(fastdds.StatusMask.all() == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) def test(status_mask_1, status_mask_2, listnr=None): @@ -258,7 +258,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(fastdds.VOLATILE_DURABILITY_QOS == qos.durability().kind) assert(status_mask_1 == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) datawriter = publisher.create_datawriter_with_profile( topic, 'test_datawriter_profile', listnr, status_mask_2) @@ -268,7 +268,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(fastdds.VOLATILE_DURABILITY_QOS == qos.durability().kind) assert(status_mask_2 == datawriter.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) # Overload 3: Different status masks @@ -343,10 +343,10 @@ def test_deleted_contained_entities(participant, topic, publisher): assert(datawriter is not None) # Cannot delete publisher with datawriters - assert(fastdds.ReturnCode_t.RETCODE_PRECONDITION_NOT_MET == + assert(fastdds.RETCODE_PRECONDITION_NOT_MET == participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_contained_entities()) assert(publisher.has_datawriters() is False) @@ -358,7 +358,7 @@ def test_enable(not_autoenable_participant_qos, publisher): - Publisher::is_enabled """ assert(not publisher.is_enabled()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.enable()) assert(publisher.is_enabled()) @@ -379,7 +379,7 @@ def test_get_datawriters(topic, publisher): assert(1 == len(datawriters)) assert(datawriter == datawriters[0]) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) @@ -422,11 +422,11 @@ def test_get_set_qos(publisher): qos.partition().push_back('PartitionTest') qos.partition().push_back('PartitionTest2') - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.set_qos(qos)) qos2 = fastdds.PublisherQos() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.get_qos(qos2)) assert(2 == len(qos.partition())) @@ -446,7 +446,7 @@ def test_get_set_listener(publisher): # Overload 1 listener = PublisherListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.set_listener(listener)) assert(publisher.get_listener() == listener) assert(fastdds.StatusMask.all() == publisher.get_status_mask()) @@ -457,13 +457,13 @@ def test(status_mask_1, status_mask_2): """ listener = PublisherListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.set_listener(listener, status_mask_1)) assert(publisher.get_listener() == listener) assert(status_mask_1 == publisher.get_status_mask()) listener = PublisherListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.set_listener(listener, status_mask_2)) assert(publisher.get_listener() == listener) assert(status_mask_2 == publisher.get_status_mask()) @@ -542,7 +542,7 @@ def test_lookup_datawriter(topic, publisher): assert(datawriter2 is not None) assert(datawriter == datawriter2) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) @@ -552,9 +552,9 @@ def test_suspend_publications(publisher): - Publisher::suspend_publications - Publisher::resume_publications """ - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == publisher.suspend_publications()) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == publisher.resume_publications()) @@ -563,7 +563,7 @@ def test_wait_for_acknowlegments(publisher): This test checks: - Publisher::wait_for_acknowledgments """ - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.wait_for_acknowledgments(fastdds.Duration_t(3, 0))) # TODO Test a timeout @@ -583,19 +583,19 @@ def create_publisher(): reader_topic, fastdds.DATAREADER_QOS_DEFAULT) time.sleep(1) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == reader_participant.delete_topic(reader_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == reader_participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(reader_participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == - factory.delete_participant(participant)) \ No newline at end of file + assert(fastdds.RETCODE_OK == + factory.delete_participant(participant)) diff --git a/fastdds_python/test/api/test_qos.py b/fastdds_python/test/api/test_qos.py index fe9e284c..6d4d6fc1 100644 --- a/fastdds_python/test/api/test_qos.py +++ b/fastdds_python/test/api/test_qos.py @@ -1505,13 +1505,6 @@ def test_domain_participant_qos(): assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind) assert(fastdds.FILTER_DIFFERENT_HOST == participant_qos. wire_protocol().builtin.discovery_config.ignoreParticipantFlags) - # ## .typelookup_config; - participant_qos.wire_protocol().builtin.typelookup_config.use_client = True - participant_qos.wire_protocol().builtin.typelookup_config.use_server = True - assert(participant_qos.wire_protocol().builtin. - typelookup_config.use_client) - assert(participant_qos.wire_protocol().builtin. - typelookup_config.use_server) # ## .metatrafficUnicastLocatorList; locator = fastdds.Locator_t() locator.address = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 168, 1, 2) @@ -1761,11 +1754,6 @@ def test_domain_participant_qos(): assert(fastdds.LOCATOR_KIND_UDPv4 == locator.kind) assert(fastdds.FILTER_DIFFERENT_HOST == default_participant_qos. wire_protocol().builtin.discovery_config.ignoreParticipantFlags) - # ## .typelookup_config; - assert(default_participant_qos.wire_protocol().builtin. - typelookup_config.use_client) - assert(default_participant_qos.wire_protocol().builtin. - typelookup_config.use_server) # ## .metatrafficUnicastLocatorList; locator = default_participant_qos.wire_protocol().builtin. \ metatrafficUnicastLocatorList[0] diff --git a/fastdds_python/test/api/test_subscriber.py b/fastdds_python/test/api/test_subscriber.py index c3c7511f..5354d95e 100644 --- a/fastdds_python/test/api/test_subscriber.py +++ b/fastdds_python/test/api/test_subscriber.py @@ -44,14 +44,14 @@ def subscriber(participant, topic): yield subscriber - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_contained_entities()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -91,9 +91,9 @@ def test_access(subscriber): This test checks: - ::resume_publications """ - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == subscriber.begin_access()) - assert(fastdds.ReturnCode_t.RETCODE_UNSUPPORTED == + assert(fastdds.RETCODE_UNSUPPORTED == subscriber.end_access()) @@ -115,7 +115,7 @@ def test_create_datareader(topic, subscriber): assert(datareader is not None) assert(datareader.is_enabled()) assert(fastdds.StatusMask.all() == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) # Overload 2 @@ -124,7 +124,7 @@ def test_create_datareader(topic, subscriber): assert(datareader is not None) assert(datareader.is_enabled()) assert(fastdds.StatusMask.all() == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) def test(status_mask_1, status_mask_2, listnr=None): @@ -136,14 +136,14 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(datareader is not None) assert(datareader.is_enabled()) assert(status_mask_1 == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) datareader = subscriber.create_datareader( topic, fastdds.DATAREADER_QOS_DEFAULT, listnr, status_mask_2) assert(datareader is not None) assert(datareader.is_enabled()) assert(status_mask_2 == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) # Overload 3: Different status masks @@ -234,7 +234,7 @@ def test_create_datareader_with_profile(topic, subscriber): assert(fastdds.RELIABLE_RELIABILITY_QOS == qos.reliability().kind) assert(fastdds.StatusMask.all() == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) # Overload 2 @@ -246,7 +246,7 @@ def test_create_datareader_with_profile(topic, subscriber): assert(fastdds.RELIABLE_RELIABILITY_QOS == qos.reliability().kind) assert(fastdds.StatusMask.all() == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) def test(status_mask_1, status_mask_2, listnr=None): @@ -261,7 +261,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(fastdds.RELIABLE_RELIABILITY_QOS == qos.reliability().kind) assert(status_mask_1 == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) datareader = subscriber.create_datareader_with_profile( topic, 'test_datareader_profile', listnr, status_mask_2) @@ -271,7 +271,7 @@ def test(status_mask_1, status_mask_2, listnr=None): assert(fastdds.RELIABLE_RELIABILITY_QOS == qos.reliability().kind) assert(status_mask_2 == datareader.get_status_mask()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) # Overload 3: Different status masks @@ -346,10 +346,10 @@ def test_delete_contained_entities(participant, topic, subscriber): assert(datareader is not None) # Cannot delete subscriber with datareaders - assert(fastdds.ReturnCode_t.RETCODE_PRECONDITION_NOT_MET == + assert(fastdds.RETCODE_PRECONDITION_NOT_MET == participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_contained_entities()) assert(subscriber.has_datareaders() is False) @@ -362,7 +362,7 @@ def test_enable(not_autoenable_participant_qos, subscriber): - Subscriber::is_enabled """ assert(not subscriber.is_enabled()) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.enable()) assert(subscriber.is_enabled()) @@ -379,11 +379,11 @@ def test_get_datareaders(topic, subscriber): assert(subscriber.has_datareaders()) datareaders = fastdds.DataReaderVector() - assert(subscriber.get_datareaders(datareaders)) + assert(fastdds.RETCODE_OK == subscriber.get_datareaders(datareaders)) assert(1 == len(datareaders)) assert(datareader == datareaders[0]) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) @@ -425,11 +425,11 @@ def test_get_set_qos(subscriber): qos = fastdds.SubscriberQos() qos.partition().push_back('PartitionTest') qos.partition().push_back('PartitionTest2') - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.set_qos(qos)) qos2 = fastdds.SubscriberQos() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.get_qos(qos2)) @@ -445,7 +445,7 @@ def test_get_set_listener(subscriber): # Overload 1 listener = SubscriberListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.set_listener(listener)) assert(subscriber.get_listener() == listener) assert(fastdds.StatusMask.all() == subscriber.get_status_mask()) @@ -456,13 +456,13 @@ def test(status_mask_1, status_mask_2): """ listener = SubscriberListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.set_listener(listener, status_mask_1)) assert(subscriber.get_listener() == listener) assert(status_mask_1 == subscriber.get_status_mask()) listener = SubscriberListener() assert(listener is not None) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.set_listener(listener, status_mask_2)) assert(subscriber.get_listener() == listener) assert(status_mask_2 == subscriber.get_status_mask()) @@ -541,7 +541,7 @@ def test_lookup_datareader(topic, subscriber): assert(datareader2 is not None) assert(datareader == datareader2) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) @@ -560,19 +560,19 @@ def create_subcriber(): writer_topic, fastdds.DATAWRITER_QOS_DEFAULT) time.sleep(1) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_topic(writer_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_publisher(publisher)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(writer_participant)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) diff --git a/fastdds_python/test/api/test_waitset.py b/fastdds_python/test/api/test_waitset.py index 5a6010d3..584a58c1 100644 --- a/fastdds_python/test/api/test_waitset.py +++ b/fastdds_python/test/api/test_waitset.py @@ -47,14 +47,14 @@ def datareader(participant, topic, subscriber): yield datareader - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == subscriber.delete_datareader(datareader)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_topic(topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == participant.delete_subscriber(subscriber)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(participant)) @@ -87,14 +87,14 @@ def datawriter(writer_participant, writer_topic, publisher): yield datawriter - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == publisher.delete_datawriter(datawriter)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_topic(writer_topic)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == writer_participant.delete_publisher(publisher)) factory = fastdds.DomainParticipantFactory.get_instance() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == factory.delete_participant(writer_participant)) @@ -111,13 +111,13 @@ def test_waitset(datareader, datawriter): attached_conds = fastdds.ConditionSeq() conds = fastdds.ConditionSeq() - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.attach_condition(status_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.attach_condition(guard_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.attach_condition(read_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.get_conditions(attached_conds)) assert(3 == len(attached_conds)) for c in attached_conds: @@ -152,7 +152,7 @@ def test_waitset(datareader, datawriter): attached_read_cond = c.to_read_condition() assert(read_cond == attached_read_cond) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.wait(conds, fastdds.Duration_t(1, 0))) assert(1 == len(conds)) @@ -165,12 +165,12 @@ def test_waitset(datareader, datawriter): assert(changed_statuses.is_active( fastdds.StatusMask.requested_incompatible_qos())) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.detach_condition(status_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.detach_condition(guard_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == waitset.detach_condition(read_cond)) - assert(fastdds.ReturnCode_t.RETCODE_OK == + assert(fastdds.RETCODE_OK == datareader.delete_readcondition(read_cond)) diff --git a/fastdds_python/test/types/CMakeLists.txt b/fastdds_python/test/types/CMakeLists.txt index 63d7e2aa..7a99c986 100644 --- a/fastdds_python/test/types/CMakeLists.txt +++ b/fastdds_python/test/types/CMakeLists.txt @@ -23,14 +23,13 @@ message(STATUS "Configuring python wrapper for types in test_included_modules... project(test_included_modules) find_package(fastcdr REQUIRED) -find_package(fastdds REQUIRED) +find_package(fastdds 3 REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types add_library(${PROJECT_NAME} SHARED - test_included_modules.cxx - test_included_modulesv1.cxx + test_included_modulesTypeObjectSupport.cxx test_included_modulesPubSubTypes.cxx ) if(WIN32) @@ -131,14 +130,13 @@ message(STATUS "Configuring python wrapper for types in test_modules...") project(test_modules) find_package(fastcdr REQUIRED) -find_package(fastdds REQUIRED) +find_package(fastdds 3 REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types add_library(${PROJECT_NAME} SHARED - test_modules.cxx - test_modulesv1.cxx + test_modulesTypeObjectSupport.cxx test_modulesPubSubTypes.cxx ) if(WIN32) @@ -239,14 +237,13 @@ message(STATUS "Configuring python wrapper for types in test_complete...") project(test_complete) find_package(fastcdr REQUIRED) -find_package(fastdds REQUIRED) +find_package(fastdds 3 REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types add_library(${PROJECT_NAME} SHARED - test_complete.cxx - test_completev1.cxx + test_completeTypeObjectSupport.cxx test_completePubSubTypes.cxx ) if(WIN32) diff --git a/fastdds_python/test/types/test_complete.cxx b/fastdds_python/test/types/test_complete.cxx deleted file mode 100644 index f930ea78..00000000 --- a/fastdds_python/test/types/test_complete.cxx +++ /dev/null @@ -1,6826 +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 test_complete.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 "test_complete.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - - - - -StructType::StructType() -{ -} - -StructType::~StructType() -{ -} - -StructType::StructType( - const StructType& x) -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_included_module_struct = x.m_included_module_struct; -} - -StructType::StructType( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_included_module_struct = std::move(x.m_included_module_struct); -} - -StructType& StructType::operator =( - const StructType& x) -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_included_module_struct = x.m_included_module_struct; - return *this; -} - -StructType& StructType::operator =( - StructType&& x) noexcept -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_included_module_struct = std::move(x.m_included_module_struct); - return *this; -} - -bool StructType::operator ==( - const StructType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_included_module_struct == x.m_included_module_struct); -} - -bool StructType::operator !=( - const StructType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color StructType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& StructType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material StructType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& StructType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member included_module_struct - * @param _included_module_struct New value to be copied in member included_module_struct - */ -void StructType::included_module_struct( - const eprosima::test2::StructType2& _included_module_struct) -{ - m_included_module_struct = _included_module_struct; -} - -/*! - * @brief This function moves the value in member included_module_struct - * @param _included_module_struct New value to be moved in member included_module_struct - */ -void StructType::included_module_struct( - eprosima::test2::StructType2&& _included_module_struct) -{ - m_included_module_struct = std::move(_included_module_struct); -} - -/*! - * @brief This function returns a constant reference to member included_module_struct - * @return Constant reference to member included_module_struct - */ -const eprosima::test2::StructType2& StructType::included_module_struct() const -{ - return m_included_module_struct; -} - -/*! - * @brief This function returns a reference to member included_module_struct - * @return Reference to member included_module_struct - */ -eprosima::test2::StructType2& StructType::included_module_struct() -{ - return m_included_module_struct; -} - - - - - - - - -CompleteTestType::CompleteTestType() -{ -} - -CompleteTestType::~CompleteTestType() -{ -} - -CompleteTestType::CompleteTestType( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; -} - -CompleteTestType::CompleteTestType( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); -} - -CompleteTestType& CompleteTestType::operator =( - const CompleteTestType& x) -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - return *this; -} - -CompleteTestType& CompleteTestType::operator =( - CompleteTestType&& x) noexcept -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - return *this; -} - -bool CompleteTestType::operator ==( - const CompleteTestType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool CompleteTestType::operator !=( - const CompleteTestType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void CompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char CompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& CompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void CompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t CompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& CompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void CompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t CompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& CompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void CompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t CompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& CompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void CompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t CompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& CompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void CompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t CompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& CompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void CompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t CompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& CompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void CompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t CompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& CompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void CompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float CompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& CompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void CompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double CompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& CompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void CompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool CompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& CompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void CompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void CompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& CompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& CompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void CompleteTestType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color CompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& CompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void CompleteTestType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material CompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& CompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void CompleteTestType::struct_field( - const StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void CompleteTestType::struct_field( - StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const StructType& CompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -StructType& CompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function copies the value in member char_opt_field - * @param _char_opt_field New value to be copied in member char_opt_field - */ -void CompleteTestType::char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function moves the value in member char_opt_field - * @param _char_opt_field New value to be moved in member char_opt_field - */ -void CompleteTestType::char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field) -{ - m_char_opt_field = std::move(_char_opt_field); -} - -/*! - * @brief This function returns a constant reference to member char_opt_field - * @return Constant reference to member char_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function copies the value in member uint8_opt_field - * @param _uint8_opt_field New value to be copied in member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function moves the value in member uint8_opt_field - * @param _uint8_opt_field New value to be moved in member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field) -{ - m_uint8_opt_field = std::move(_uint8_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint8_opt_field - * @return Constant reference to member uint8_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function copies the value in member int16_opt_field - * @param _int16_opt_field New value to be copied in member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function moves the value in member int16_opt_field - * @param _int16_opt_field New value to be moved in member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field) -{ - m_int16_opt_field = std::move(_int16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int16_opt_field - * @return Constant reference to member int16_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function copies the value in member uint16_opt_field - * @param _uint16_opt_field New value to be copied in member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function moves the value in member uint16_opt_field - * @param _uint16_opt_field New value to be moved in member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field) -{ - m_uint16_opt_field = std::move(_uint16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint16_opt_field - * @return Constant reference to member uint16_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function copies the value in member int32_opt_field - * @param _int32_opt_field New value to be copied in member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function moves the value in member int32_opt_field - * @param _int32_opt_field New value to be moved in member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field) -{ - m_int32_opt_field = std::move(_int32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int32_opt_field - * @return Constant reference to member int32_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function copies the value in member uint32_opt_field - * @param _uint32_opt_field New value to be copied in member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function moves the value in member uint32_opt_field - * @param _uint32_opt_field New value to be moved in member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field) -{ - m_uint32_opt_field = std::move(_uint32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint32_opt_field - * @return Constant reference to member uint32_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function copies the value in member int64_opt_field - * @param _int64_opt_field New value to be copied in member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function moves the value in member int64_opt_field - * @param _int64_opt_field New value to be moved in member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field) -{ - m_int64_opt_field = std::move(_int64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int64_opt_field - * @return Constant reference to member int64_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function copies the value in member uint64_opt_field - * @param _uint64_opt_field New value to be copied in member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function moves the value in member uint64_opt_field - * @param _uint64_opt_field New value to be moved in member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field) -{ - m_uint64_opt_field = std::move(_uint64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint64_opt_field - * @return Constant reference to member uint64_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function copies the value in member float_opt_field - * @param _float_opt_field New value to be copied in member float_opt_field - */ -void CompleteTestType::float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function moves the value in member float_opt_field - * @param _float_opt_field New value to be moved in member float_opt_field - */ -void CompleteTestType::float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field) -{ - m_float_opt_field = std::move(_float_opt_field); -} - -/*! - * @brief This function returns a constant reference to member float_opt_field - * @return Constant reference to member float_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function copies the value in member double_opt_field - * @param _double_opt_field New value to be copied in member double_opt_field - */ -void CompleteTestType::double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function moves the value in member double_opt_field - * @param _double_opt_field New value to be moved in member double_opt_field - */ -void CompleteTestType::double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field) -{ - m_double_opt_field = std::move(_double_opt_field); -} - -/*! - * @brief This function returns a constant reference to member double_opt_field - * @return Constant reference to member double_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function copies the value in member bool_opt_field - * @param _bool_opt_field New value to be copied in member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function moves the value in member bool_opt_field - * @param _bool_opt_field New value to be moved in member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field) -{ - m_bool_opt_field = std::move(_bool_opt_field); -} - -/*! - * @brief This function returns a constant reference to member bool_opt_field - * @return Constant reference to member bool_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void CompleteTestType::string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void CompleteTestType::string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function copies the value in member enum_opt_field - * @param _enum_opt_field New value to be copied in member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function moves the value in member enum_opt_field - * @param _enum_opt_field New value to be moved in member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field) -{ - m_enum_opt_field = std::move(_enum_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum_opt_field - * @return Constant reference to member enum_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function copies the value in member enum2_opt_field - * @param _enum2_opt_field New value to be copied in member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function moves the value in member enum2_opt_field - * @param _enum2_opt_field New value to be moved in member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field) -{ - m_enum2_opt_field = std::move(_enum2_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum2_opt_field - * @return Constant reference to member enum2_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void CompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void CompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& CompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& CompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& CompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& CompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& CompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& CompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& CompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& CompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& CompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& CompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& CompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& CompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& CompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& CompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& CompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& CompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void CompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void CompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& CompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& CompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void CompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void CompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& CompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& CompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& CompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& CompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& CompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& CompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& CompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& CompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& CompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& CompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& CompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& CompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& CompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& CompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& CompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& CompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& CompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& CompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& CompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& CompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& CompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& CompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& CompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& CompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& CompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& CompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& CompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& CompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& CompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& CompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& CompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& CompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& CompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& CompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& CompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& CompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& CompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& CompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& CompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& CompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& CompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& CompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& CompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& CompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& CompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - - - -KeyedCompleteTestType::KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::~KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; -} - -KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) -{ - - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - return *this; -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept -{ - - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - return *this; -} - -bool KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const -{ - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ -void KeyedCompleteTestType::id( - int32_t _id) -{ - m_id = _id; -} - -/*! - * @brief This function returns the value of member id - * @return Value of member id - */ -int32_t KeyedCompleteTestType::id() const -{ - return m_id; -} - -/*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ -int32_t& KeyedCompleteTestType::id() -{ - return m_id; -} - - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void KeyedCompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char KeyedCompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& KeyedCompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t KeyedCompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& KeyedCompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void KeyedCompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t KeyedCompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& KeyedCompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t KeyedCompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& KeyedCompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void KeyedCompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t KeyedCompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& KeyedCompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t KeyedCompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& KeyedCompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void KeyedCompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t KeyedCompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& KeyedCompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t KeyedCompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& KeyedCompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void KeyedCompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float KeyedCompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& KeyedCompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void KeyedCompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double KeyedCompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& KeyedCompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void KeyedCompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool KeyedCompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& KeyedCompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void KeyedCompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void KeyedCompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& KeyedCompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& KeyedCompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void KeyedCompleteTestType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color KeyedCompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& KeyedCompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void KeyedCompleteTestType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material KeyedCompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& KeyedCompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void KeyedCompleteTestType::struct_field( - const StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void KeyedCompleteTestType::struct_field( - StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const StructType& KeyedCompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -StructType& KeyedCompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function copies the value in member char_opt_field - * @param _char_opt_field New value to be copied in member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function moves the value in member char_opt_field - * @param _char_opt_field New value to be moved in member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field) -{ - m_char_opt_field = std::move(_char_opt_field); -} - -/*! - * @brief This function returns a constant reference to member char_opt_field - * @return Constant reference to member char_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function copies the value in member uint8_opt_field - * @param _uint8_opt_field New value to be copied in member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function moves the value in member uint8_opt_field - * @param _uint8_opt_field New value to be moved in member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field) -{ - m_uint8_opt_field = std::move(_uint8_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint8_opt_field - * @return Constant reference to member uint8_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function copies the value in member int16_opt_field - * @param _int16_opt_field New value to be copied in member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function moves the value in member int16_opt_field - * @param _int16_opt_field New value to be moved in member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field) -{ - m_int16_opt_field = std::move(_int16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int16_opt_field - * @return Constant reference to member int16_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function copies the value in member uint16_opt_field - * @param _uint16_opt_field New value to be copied in member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function moves the value in member uint16_opt_field - * @param _uint16_opt_field New value to be moved in member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field) -{ - m_uint16_opt_field = std::move(_uint16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint16_opt_field - * @return Constant reference to member uint16_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function copies the value in member int32_opt_field - * @param _int32_opt_field New value to be copied in member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function moves the value in member int32_opt_field - * @param _int32_opt_field New value to be moved in member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field) -{ - m_int32_opt_field = std::move(_int32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int32_opt_field - * @return Constant reference to member int32_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function copies the value in member uint32_opt_field - * @param _uint32_opt_field New value to be copied in member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function moves the value in member uint32_opt_field - * @param _uint32_opt_field New value to be moved in member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field) -{ - m_uint32_opt_field = std::move(_uint32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint32_opt_field - * @return Constant reference to member uint32_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function copies the value in member int64_opt_field - * @param _int64_opt_field New value to be copied in member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function moves the value in member int64_opt_field - * @param _int64_opt_field New value to be moved in member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field) -{ - m_int64_opt_field = std::move(_int64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int64_opt_field - * @return Constant reference to member int64_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function copies the value in member uint64_opt_field - * @param _uint64_opt_field New value to be copied in member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function moves the value in member uint64_opt_field - * @param _uint64_opt_field New value to be moved in member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field) -{ - m_uint64_opt_field = std::move(_uint64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint64_opt_field - * @return Constant reference to member uint64_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function copies the value in member float_opt_field - * @param _float_opt_field New value to be copied in member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function moves the value in member float_opt_field - * @param _float_opt_field New value to be moved in member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field) -{ - m_float_opt_field = std::move(_float_opt_field); -} - -/*! - * @brief This function returns a constant reference to member float_opt_field - * @return Constant reference to member float_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function copies the value in member double_opt_field - * @param _double_opt_field New value to be copied in member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function moves the value in member double_opt_field - * @param _double_opt_field New value to be moved in member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field) -{ - m_double_opt_field = std::move(_double_opt_field); -} - -/*! - * @brief This function returns a constant reference to member double_opt_field - * @return Constant reference to member double_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function copies the value in member bool_opt_field - * @param _bool_opt_field New value to be copied in member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function moves the value in member bool_opt_field - * @param _bool_opt_field New value to be moved in member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field) -{ - m_bool_opt_field = std::move(_bool_opt_field); -} - -/*! - * @brief This function returns a constant reference to member bool_opt_field - * @return Constant reference to member bool_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function copies the value in member enum_opt_field - * @param _enum_opt_field New value to be copied in member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function moves the value in member enum_opt_field - * @param _enum_opt_field New value to be moved in member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field) -{ - m_enum_opt_field = std::move(_enum_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum_opt_field - * @return Constant reference to member enum_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function copies the value in member enum2_opt_field - * @param _enum2_opt_field New value to be copied in member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function moves the value in member enum2_opt_field - * @param _enum2_opt_field New value to be moved in member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field) -{ - m_enum2_opt_field = std::move(_enum2_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum2_opt_field - * @return Constant reference to member enum2_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& KeyedCompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& KeyedCompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& KeyedCompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& KeyedCompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& KeyedCompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& KeyedCompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& KeyedCompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& KeyedCompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& KeyedCompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& KeyedCompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& KeyedCompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& KeyedCompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& KeyedCompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& KeyedCompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& KeyedCompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& KeyedCompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& KeyedCompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& KeyedCompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& KeyedCompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& KeyedCompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& KeyedCompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& KeyedCompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& KeyedCompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& KeyedCompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& KeyedCompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& KeyedCompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& KeyedCompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& KeyedCompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - -// Include auxiliary functions like for serializing/deserializing. -#include "test_completeCdrAux.ipp" - -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_complete.h b/fastdds_python/test/types/test_complete.hpp similarity index 59% rename from fastdds_python/test/types/test_complete.h rename to fastdds_python/test/types/test_complete.hpp index 7a0b8a52..f099c8a3 100644 --- a/fastdds_python/test/types/test_complete.h +++ b/fastdds_python/test/types/test_complete.hpp @@ -13,33 +13,24 @@ // limitations under the License. /*! - * @file test_complete.h + * @file test_complete.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 "test_completev1.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#ifndef _FAST_DDS_GENERATED_TEST_COMPLETE_H_ -#define _FAST_DDS_GENERATED_TEST_COMPLETE_H_ +#ifndef _FAST_DDS_GENERATED_TEST_COMPLETE_HPP_ +#define _FAST_DDS_GENERATED_TEST_COMPLETE_HPP_ #include -#include #include -#include #include +#include #include #include -#include #include - -#include "test_included_modules.h" - +#include "test_included_modules.hpp" #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -65,20 +56,11 @@ #define TEST_COMPLETE_DllAPI #endif // _WIN32 -namespace eprosima { -namespace fastcdr { -class Cdr; -class CdrSizeCalculator; -} // namespace fastcdr -} // namespace eprosima - - - /*! * @brief This class represents the enumeration Color defined by the user in the IDL file. * @ingroup test_complete */ -enum Color : uint32_t +enum class Color : uint32_t { RED, GREEN, @@ -90,7 +72,7 @@ enum Color : uint32_t * @brief This class represents the enumeration Material defined by the user in the IDL file. * @ingroup test_complete */ -enum Material : uint32_t +enum class Material : uint32_t { WOOD, PLASTIC, @@ -98,8 +80,6 @@ enum Material : uint32_t CONCRETE, STONE }; - - /*! * @brief This class represents the structure StructType defined by the user in the IDL file. * @ingroup test_complete @@ -111,73 +91,208 @@ class StructType /*! * @brief Default constructor. */ - eProsima_user_DllExport StructType(); + eProsima_user_DllExport StructType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~StructType(); + eProsima_user_DllExport ~StructType() + { + } /*! * @brief Copy constructor. * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType( - const StructType& x); + const StructType& x) + { + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_included_module_struct = x.m_included_module_struct; + + } /*! * @brief Move constructor. * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType( - StructType&& x) noexcept; + StructType&& x) noexcept + { + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_included_module_struct = std::move(x.m_included_module_struct); + } /*! * @brief Copy assignment. * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType& operator =( - const StructType& x); + const StructType& x) + { + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_included_module_struct = x.m_included_module_struct; + + return *this; + } /*! * @brief Move assignment. * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType& operator =( - StructType&& x) noexcept; + StructType&& x) noexcept + { + + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_included_module_struct = std::move(x.m_included_module_struct); + return *this; + } /*! * @brief Comparison operator. * @param x StructType object to compare. */ eProsima_user_DllExport bool operator ==( - const StructType& x) const; + const StructType& x) const + { + return (m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_included_module_struct == x.m_included_module_struct); + } /*! * @brief Comparison operator. * @param x StructType object to compare. */ eProsima_user_DllExport bool operator !=( - const StructType& x) const; + const StructType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member char_field * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -185,19 +300,28 @@ class StructType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -205,19 +329,28 @@ class StructType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -225,19 +358,28 @@ class StructType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -245,19 +387,28 @@ class StructType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -265,19 +416,28 @@ class StructType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -285,19 +445,28 @@ class StructType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -305,19 +474,28 @@ class StructType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -325,19 +503,28 @@ class StructType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -345,19 +532,28 @@ class StructType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -365,19 +561,28 @@ class StructType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -385,26 +590,38 @@ class StructType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -412,19 +629,28 @@ class StructType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -432,19 +658,28 @@ class StructType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } /*! @@ -452,26 +687,40 @@ class StructType * @param _included_module_struct New value to be copied in member included_module_struct */ eProsima_user_DllExport void included_module_struct( - const eprosima::test2::StructType2& _included_module_struct); + const eprosima::test2::StructType2& _included_module_struct) + { + m_included_module_struct = _included_module_struct; + } /*! * @brief This function moves the value in member included_module_struct * @param _included_module_struct New value to be moved in member included_module_struct */ eProsima_user_DllExport void included_module_struct( - eprosima::test2::StructType2&& _included_module_struct); + eprosima::test2::StructType2&& _included_module_struct) + { + m_included_module_struct = std::move(_included_module_struct); + } /*! * @brief This function returns a constant reference to member included_module_struct * @return Constant reference to member included_module_struct */ - eProsima_user_DllExport const eprosima::test2::StructType2& included_module_struct() const; + eProsima_user_DllExport const eprosima::test2::StructType2& included_module_struct() const + { + return m_included_module_struct; + } /*! * @brief This function returns a reference to member included_module_struct * @return Reference to member included_module_struct */ - eProsima_user_DllExport eprosima::test2::StructType2& included_module_struct(); + eProsima_user_DllExport eprosima::test2::StructType2& included_module_struct() + { + return m_included_module_struct; + } + + private: @@ -487,17 +736,13 @@ class StructType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - Color m_enum_field{::RED}; - Material m_enum2_field{::WOOD}; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; eprosima::test2::StructType2 m_included_module_struct; }; const uint32_t max_array_size = 3; const uint32_t max_seq_size = 5; - - - - /*! * @brief This class represents the structure CompleteTestType defined by the user in the IDL file. * @ingroup test_complete @@ -509,73 +754,607 @@ class CompleteTestType /*! * @brief Default constructor. */ - eProsima_user_DllExport CompleteTestType(); + eProsima_user_DllExport CompleteTestType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~CompleteTestType(); + eProsima_user_DllExport ~CompleteTestType() + { + } /*! * @brief Copy constructor. * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType( - const CompleteTestType& x); + const CompleteTestType& x) + { + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + } /*! * @brief Move constructor. * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType( - CompleteTestType&& x) noexcept; + CompleteTestType&& x) noexcept + { + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + } /*! * @brief Copy assignment. * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType& operator =( - const CompleteTestType& x); + const CompleteTestType& x) + { + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; + } /*! * @brief Move assignment. * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType& operator =( - CompleteTestType&& x) noexcept; + CompleteTestType&& x) noexcept + { + + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + return *this; + } /*! * @brief Comparison operator. * @param x CompleteTestType object to compare. */ eProsima_user_DllExport bool operator ==( - const CompleteTestType& x) const; + const CompleteTestType& x) const + { + return (m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + } /*! * @brief Comparison operator. * @param x CompleteTestType object to compare. */ eProsima_user_DllExport bool operator !=( - const CompleteTestType& x) const; + const CompleteTestType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member char_field * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -583,19 +1362,28 @@ class CompleteTestType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -603,19 +1391,28 @@ class CompleteTestType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -623,19 +1420,28 @@ class CompleteTestType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -643,19 +1449,28 @@ class CompleteTestType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -663,19 +1478,28 @@ class CompleteTestType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -683,19 +1507,28 @@ class CompleteTestType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -703,19 +1536,28 @@ class CompleteTestType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -723,19 +1565,28 @@ class CompleteTestType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -743,19 +1594,28 @@ class CompleteTestType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -763,19 +1623,28 @@ class CompleteTestType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -783,26 +1652,38 @@ class CompleteTestType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -810,19 +1691,28 @@ class CompleteTestType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -830,19 +1720,28 @@ class CompleteTestType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } /*! @@ -850,26 +1749,38 @@ class CompleteTestType * @param _struct_field New value to be copied in member struct_field */ eProsima_user_DllExport void struct_field( - const StructType& _struct_field); + const StructType& _struct_field) + { + m_struct_field = _struct_field; + } /*! * @brief This function moves the value in member struct_field * @param _struct_field New value to be moved in member struct_field */ eProsima_user_DllExport void struct_field( - StructType&& _struct_field); + StructType&& _struct_field) + { + m_struct_field = std::move(_struct_field); + } /*! * @brief This function returns a constant reference to member struct_field * @return Constant reference to member struct_field */ - eProsima_user_DllExport const StructType& struct_field() const; + eProsima_user_DllExport const StructType& struct_field() const + { + return m_struct_field; + } /*! * @brief This function returns a reference to member struct_field * @return Reference to member struct_field */ - eProsima_user_DllExport StructType& struct_field(); + eProsima_user_DllExport StructType& struct_field() + { + return m_struct_field; + } /*! @@ -877,26 +1788,38 @@ class CompleteTestType * @param _char_opt_field New value to be copied in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field); + const eprosima::fastcdr::optional& _char_opt_field) + { + m_char_opt_field = _char_opt_field; + } /*! * @brief This function moves the value in member char_opt_field * @param _char_opt_field New value to be moved in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field); + eprosima::fastcdr::optional&& _char_opt_field) + { + m_char_opt_field = std::move(_char_opt_field); + } /*! * @brief This function returns a constant reference to member char_opt_field * @return Constant reference to member char_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const + { + return m_char_opt_field; + } /*! * @brief This function returns a reference to member char_opt_field * @return Reference to member char_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field() + { + return m_char_opt_field; + } /*! @@ -904,26 +1827,38 @@ class CompleteTestType * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field); + const eprosima::fastcdr::optional& _uint8_opt_field) + { + m_uint8_opt_field = _uint8_opt_field; + } /*! * @brief This function moves the value in member uint8_opt_field * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field); + eprosima::fastcdr::optional&& _uint8_opt_field) + { + m_uint8_opt_field = std::move(_uint8_opt_field); + } /*! * @brief This function returns a constant reference to member uint8_opt_field * @return Constant reference to member uint8_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const + { + return m_uint8_opt_field; + } /*! * @brief This function returns a reference to member uint8_opt_field * @return Reference to member uint8_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field() + { + return m_uint8_opt_field; + } /*! @@ -931,26 +1866,38 @@ class CompleteTestType * @param _int16_opt_field New value to be copied in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field); + const eprosima::fastcdr::optional& _int16_opt_field) + { + m_int16_opt_field = _int16_opt_field; + } /*! * @brief This function moves the value in member int16_opt_field * @param _int16_opt_field New value to be moved in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field); + eprosima::fastcdr::optional&& _int16_opt_field) + { + m_int16_opt_field = std::move(_int16_opt_field); + } /*! * @brief This function returns a constant reference to member int16_opt_field * @return Constant reference to member int16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const + { + return m_int16_opt_field; + } /*! * @brief This function returns a reference to member int16_opt_field * @return Reference to member int16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field() + { + return m_int16_opt_field; + } /*! @@ -958,26 +1905,38 @@ class CompleteTestType * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field); + const eprosima::fastcdr::optional& _uint16_opt_field) + { + m_uint16_opt_field = _uint16_opt_field; + } /*! * @brief This function moves the value in member uint16_opt_field * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field); + eprosima::fastcdr::optional&& _uint16_opt_field) + { + m_uint16_opt_field = std::move(_uint16_opt_field); + } /*! * @brief This function returns a constant reference to member uint16_opt_field * @return Constant reference to member uint16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const + { + return m_uint16_opt_field; + } /*! * @brief This function returns a reference to member uint16_opt_field * @return Reference to member uint16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field() + { + return m_uint16_opt_field; + } /*! @@ -985,26 +1944,38 @@ class CompleteTestType * @param _int32_opt_field New value to be copied in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field); + const eprosima::fastcdr::optional& _int32_opt_field) + { + m_int32_opt_field = _int32_opt_field; + } /*! * @brief This function moves the value in member int32_opt_field * @param _int32_opt_field New value to be moved in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field); + eprosima::fastcdr::optional&& _int32_opt_field) + { + m_int32_opt_field = std::move(_int32_opt_field); + } /*! * @brief This function returns a constant reference to member int32_opt_field * @return Constant reference to member int32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const + { + return m_int32_opt_field; + } /*! * @brief This function returns a reference to member int32_opt_field * @return Reference to member int32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field() + { + return m_int32_opt_field; + } /*! @@ -1012,26 +1983,38 @@ class CompleteTestType * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field); + const eprosima::fastcdr::optional& _uint32_opt_field) + { + m_uint32_opt_field = _uint32_opt_field; + } /*! * @brief This function moves the value in member uint32_opt_field * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field); + eprosima::fastcdr::optional&& _uint32_opt_field) + { + m_uint32_opt_field = std::move(_uint32_opt_field); + } /*! * @brief This function returns a constant reference to member uint32_opt_field * @return Constant reference to member uint32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const + { + return m_uint32_opt_field; + } /*! * @brief This function returns a reference to member uint32_opt_field * @return Reference to member uint32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field() + { + return m_uint32_opt_field; + } /*! @@ -1039,26 +2022,38 @@ class CompleteTestType * @param _int64_opt_field New value to be copied in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field); + const eprosima::fastcdr::optional& _int64_opt_field) + { + m_int64_opt_field = _int64_opt_field; + } /*! * @brief This function moves the value in member int64_opt_field * @param _int64_opt_field New value to be moved in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field); + eprosima::fastcdr::optional&& _int64_opt_field) + { + m_int64_opt_field = std::move(_int64_opt_field); + } /*! * @brief This function returns a constant reference to member int64_opt_field * @return Constant reference to member int64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const + { + return m_int64_opt_field; + } /*! * @brief This function returns a reference to member int64_opt_field * @return Reference to member int64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field() + { + return m_int64_opt_field; + } /*! @@ -1066,26 +2061,38 @@ class CompleteTestType * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field); + const eprosima::fastcdr::optional& _uint64_opt_field) + { + m_uint64_opt_field = _uint64_opt_field; + } /*! * @brief This function moves the value in member uint64_opt_field * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field); + eprosima::fastcdr::optional&& _uint64_opt_field) + { + m_uint64_opt_field = std::move(_uint64_opt_field); + } /*! * @brief This function returns a constant reference to member uint64_opt_field * @return Constant reference to member uint64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const + { + return m_uint64_opt_field; + } /*! * @brief This function returns a reference to member uint64_opt_field * @return Reference to member uint64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field() + { + return m_uint64_opt_field; + } /*! @@ -1093,26 +2100,38 @@ class CompleteTestType * @param _float_opt_field New value to be copied in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field); + const eprosima::fastcdr::optional& _float_opt_field) + { + m_float_opt_field = _float_opt_field; + } /*! * @brief This function moves the value in member float_opt_field * @param _float_opt_field New value to be moved in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field); + eprosima::fastcdr::optional&& _float_opt_field) + { + m_float_opt_field = std::move(_float_opt_field); + } /*! * @brief This function returns a constant reference to member float_opt_field * @return Constant reference to member float_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const + { + return m_float_opt_field; + } /*! * @brief This function returns a reference to member float_opt_field * @return Reference to member float_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field() + { + return m_float_opt_field; + } /*! @@ -1120,26 +2139,38 @@ class CompleteTestType * @param _double_opt_field New value to be copied in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field); + const eprosima::fastcdr::optional& _double_opt_field) + { + m_double_opt_field = _double_opt_field; + } /*! * @brief This function moves the value in member double_opt_field * @param _double_opt_field New value to be moved in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field); + eprosima::fastcdr::optional&& _double_opt_field) + { + m_double_opt_field = std::move(_double_opt_field); + } /*! * @brief This function returns a constant reference to member double_opt_field * @return Constant reference to member double_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const + { + return m_double_opt_field; + } /*! * @brief This function returns a reference to member double_opt_field * @return Reference to member double_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field() + { + return m_double_opt_field; + } /*! @@ -1147,26 +2178,38 @@ class CompleteTestType * @param _bool_opt_field New value to be copied in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field); + const eprosima::fastcdr::optional& _bool_opt_field) + { + m_bool_opt_field = _bool_opt_field; + } /*! * @brief This function moves the value in member bool_opt_field * @param _bool_opt_field New value to be moved in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field); + eprosima::fastcdr::optional&& _bool_opt_field) + { + m_bool_opt_field = std::move(_bool_opt_field); + } /*! * @brief This function returns a constant reference to member bool_opt_field * @return Constant reference to member bool_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const + { + return m_bool_opt_field; + } /*! * @brief This function returns a reference to member bool_opt_field * @return Reference to member bool_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field() + { + return m_bool_opt_field; + } /*! @@ -1174,26 +2217,38 @@ class CompleteTestType * @param _string_opt_field New value to be copied in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field); + const eprosima::fastcdr::optional& _string_opt_field) + { + m_string_opt_field = _string_opt_field; + } /*! * @brief This function moves the value in member string_opt_field * @param _string_opt_field New value to be moved in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field); + eprosima::fastcdr::optional&& _string_opt_field) + { + m_string_opt_field = std::move(_string_opt_field); + } /*! * @brief This function returns a constant reference to member string_opt_field * @return Constant reference to member string_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const + { + return m_string_opt_field; + } /*! * @brief This function returns a reference to member string_opt_field * @return Reference to member string_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field() + { + return m_string_opt_field; + } /*! @@ -1201,26 +2256,38 @@ class CompleteTestType * @param _enum_opt_field New value to be copied in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field); + const eprosima::fastcdr::optional& _enum_opt_field) + { + m_enum_opt_field = _enum_opt_field; + } /*! * @brief This function moves the value in member enum_opt_field * @param _enum_opt_field New value to be moved in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field); + eprosima::fastcdr::optional&& _enum_opt_field) + { + m_enum_opt_field = std::move(_enum_opt_field); + } /*! * @brief This function returns a constant reference to member enum_opt_field * @return Constant reference to member enum_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const + { + return m_enum_opt_field; + } /*! * @brief This function returns a reference to member enum_opt_field * @return Reference to member enum_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field() + { + return m_enum_opt_field; + } /*! @@ -1228,26 +2295,38 @@ class CompleteTestType * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field); + const eprosima::fastcdr::optional& _enum2_opt_field) + { + m_enum2_opt_field = _enum2_opt_field; + } /*! * @brief This function moves the value in member enum2_opt_field * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field); + eprosima::fastcdr::optional&& _enum2_opt_field) + { + m_enum2_opt_field = std::move(_enum2_opt_field); + } /*! * @brief This function returns a constant reference to member enum2_opt_field * @return Constant reference to member enum2_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const + { + return m_enum2_opt_field; + } /*! * @brief This function returns a reference to member enum2_opt_field * @return Reference to member enum2_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field() + { + return m_enum2_opt_field; + } /*! @@ -1255,26 +2334,38 @@ class CompleteTestType * @param _struct_opt_field New value to be copied in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field); + const eprosima::fastcdr::optional& _struct_opt_field) + { + m_struct_opt_field = _struct_opt_field; + } /*! * @brief This function moves the value in member struct_opt_field * @param _struct_opt_field New value to be moved in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field); + eprosima::fastcdr::optional&& _struct_opt_field) + { + m_struct_opt_field = std::move(_struct_opt_field); + } /*! * @brief This function returns a constant reference to member struct_opt_field * @return Constant reference to member struct_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const + { + return m_struct_opt_field; + } /*! * @brief This function returns a reference to member struct_opt_field * @return Reference to member struct_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field() + { + return m_struct_opt_field; + } /*! @@ -1282,26 +2373,38 @@ class CompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field) + { + m_array_char_field = _array_char_field; + } /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field) + { + m_array_char_field = std::move(_array_char_field); + } /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const + { + return m_array_char_field; + } /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field() + { + return m_array_char_field; + } /*! @@ -1309,26 +2412,38 @@ class CompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field) + { + m_array_uint8_field = _array_uint8_field; + } /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field) + { + m_array_uint8_field = std::move(_array_uint8_field); + } /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const + { + return m_array_uint8_field; + } /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field() + { + return m_array_uint8_field; + } /*! @@ -1336,26 +2451,38 @@ class CompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field) + { + m_array_int16_field = _array_int16_field; + } /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field) + { + m_array_int16_field = std::move(_array_int16_field); + } /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const + { + return m_array_int16_field; + } /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field() + { + return m_array_int16_field; + } /*! @@ -1363,26 +2490,38 @@ class CompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field) + { + m_array_uint16_field = _array_uint16_field; + } /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field) + { + m_array_uint16_field = std::move(_array_uint16_field); + } /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const + { + return m_array_uint16_field; + } /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field() + { + return m_array_uint16_field; + } /*! @@ -1390,26 +2529,38 @@ class CompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field) + { + m_array_int32_field = _array_int32_field; + } /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field) + { + m_array_int32_field = std::move(_array_int32_field); + } /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const + { + return m_array_int32_field; + } /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field() + { + return m_array_int32_field; + } /*! @@ -1417,26 +2568,38 @@ class CompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field) + { + m_array_uint32_field = _array_uint32_field; + } /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field) + { + m_array_uint32_field = std::move(_array_uint32_field); + } /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const + { + return m_array_uint32_field; + } /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field() + { + return m_array_uint32_field; + } /*! @@ -1444,26 +2607,38 @@ class CompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field) + { + m_array_int64_field = _array_int64_field; + } /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field) + { + m_array_int64_field = std::move(_array_int64_field); + } /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const + { + return m_array_int64_field; + } /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field() + { + return m_array_int64_field; + } /*! @@ -1471,26 +2646,38 @@ class CompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field) + { + m_array_uint64_field = _array_uint64_field; + } /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field) + { + m_array_uint64_field = std::move(_array_uint64_field); + } /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const + { + return m_array_uint64_field; + } /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field() + { + return m_array_uint64_field; + } /*! @@ -1498,26 +2685,38 @@ class CompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field) + { + m_array_float_field = _array_float_field; + } /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field) + { + m_array_float_field = std::move(_array_float_field); + } /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const + { + return m_array_float_field; + } /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field() + { + return m_array_float_field; + } /*! @@ -1525,26 +2724,38 @@ class CompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field) + { + m_array_double_field = _array_double_field; + } /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field) + { + m_array_double_field = std::move(_array_double_field); + } /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const + { + return m_array_double_field; + } /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field() + { + return m_array_double_field; + } /*! @@ -1552,26 +2763,38 @@ class CompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field) + { + m_array_bool_field = _array_bool_field; + } /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field) + { + m_array_bool_field = std::move(_array_bool_field); + } /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const + { + return m_array_bool_field; + } /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field() + { + return m_array_bool_field; + } /*! @@ -1579,26 +2802,38 @@ class CompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field) + { + m_array_enum_field = _array_enum_field; + } /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field) + { + m_array_enum_field = std::move(_array_enum_field); + } /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const + { + return m_array_enum_field; + } /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field() + { + return m_array_enum_field; + } /*! @@ -1606,26 +2841,38 @@ class CompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field) + { + m_array_enum2_field = _array_enum2_field; + } /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field) + { + m_array_enum2_field = std::move(_array_enum2_field); + } /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const + { + return m_array_enum2_field; + } /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field() + { + return m_array_enum2_field; + } /*! @@ -1633,26 +2880,38 @@ class CompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field) + { + m_array_struct_field = _array_struct_field; + } /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field) + { + m_array_struct_field = std::move(_array_struct_field); + } /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const + { + return m_array_struct_field; + } /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field() + { + return m_array_struct_field; + } /*! @@ -1660,26 +2919,38 @@ class CompleteTestType * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); + const std::vector& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = _bounded_sequence_char_field; + } /*! * @brief This function moves the value in member bounded_sequence_char_field * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); + std::vector&& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_char_field * @return Constant reference to member bounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const + { + return m_bounded_sequence_char_field; + } /*! * @brief This function returns a reference to member bounded_sequence_char_field * @return Reference to member bounded_sequence_char_field */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); + eProsima_user_DllExport std::vector& bounded_sequence_char_field() + { + return m_bounded_sequence_char_field; + } /*! @@ -1687,26 +2958,38 @@ class CompleteTestType * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); + const std::vector& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint8_field * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); + std::vector&& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint8_field * @return Constant reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const + { + return m_bounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint8_field * @return Reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint8_field() + { + return m_bounded_sequence_uint8_field; + } /*! @@ -1714,26 +2997,38 @@ class CompleteTestType * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); + const std::vector& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + } /*! * @brief This function moves the value in member bounded_sequence_int16_field * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); + std::vector&& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int16_field * @return Constant reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const + { + return m_bounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int16_field * @return Reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int16_field() + { + return m_bounded_sequence_int16_field; + } /*! @@ -1741,26 +3036,38 @@ class CompleteTestType * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); + const std::vector& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint16_field * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); + std::vector&& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint16_field * @return Constant reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const + { + return m_bounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint16_field * @return Reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint16_field() + { + return m_bounded_sequence_uint16_field; + } /*! @@ -1768,26 +3075,38 @@ class CompleteTestType * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); + const std::vector& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + } /*! * @brief This function moves the value in member bounded_sequence_int32_field * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); + std::vector&& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int32_field * @return Constant reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const + { + return m_bounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int32_field * @return Reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int32_field() + { + return m_bounded_sequence_int32_field; + } /*! @@ -1795,26 +3114,38 @@ class CompleteTestType * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); + const std::vector& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint32_field * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); + std::vector&& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint32_field * @return Constant reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const + { + return m_bounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint32_field * @return Reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint32_field() + { + return m_bounded_sequence_uint32_field; + } /*! @@ -1822,26 +3153,38 @@ class CompleteTestType * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); + const std::vector& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + } /*! * @brief This function moves the value in member bounded_sequence_int64_field * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); + std::vector&& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int64_field * @return Constant reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const + { + return m_bounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int64_field * @return Reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int64_field() + { + return m_bounded_sequence_int64_field; + } /*! @@ -1849,26 +3192,38 @@ class CompleteTestType * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); + const std::vector& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint64_field * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); + std::vector&& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint64_field * @return Constant reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const + { + return m_bounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint64_field * @return Reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint64_field() + { + return m_bounded_sequence_uint64_field; + } /*! @@ -1876,26 +3231,38 @@ class CompleteTestType * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); + const std::vector& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = _bounded_sequence_float_field; + } /*! * @brief This function moves the value in member bounded_sequence_float_field * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); + std::vector&& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_float_field * @return Constant reference to member bounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const + { + return m_bounded_sequence_float_field; + } /*! * @brief This function returns a reference to member bounded_sequence_float_field * @return Reference to member bounded_sequence_float_field */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); + eProsima_user_DllExport std::vector& bounded_sequence_float_field() + { + return m_bounded_sequence_float_field; + } /*! @@ -1903,26 +3270,38 @@ class CompleteTestType * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); + const std::vector& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = _bounded_sequence_double_field; + } /*! * @brief This function moves the value in member bounded_sequence_double_field * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); + std::vector&& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_double_field * @return Constant reference to member bounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const + { + return m_bounded_sequence_double_field; + } /*! * @brief This function returns a reference to member bounded_sequence_double_field * @return Reference to member bounded_sequence_double_field */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); + eProsima_user_DllExport std::vector& bounded_sequence_double_field() + { + return m_bounded_sequence_double_field; + } /*! @@ -1930,26 +3309,38 @@ class CompleteTestType * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); + const std::vector& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + } /*! * @brief This function moves the value in member bounded_sequence_bool_field * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); + std::vector&& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_bool_field * @return Constant reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const + { + return m_bounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member bounded_sequence_bool_field * @return Reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& bounded_sequence_bool_field() + { + return m_bounded_sequence_bool_field; + } /*! @@ -1957,26 +3348,38 @@ class CompleteTestType * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); + const std::vector& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum_field * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); + std::vector&& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum_field * @return Constant reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const + { + return m_bounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum_field * @return Reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum_field() + { + return m_bounded_sequence_enum_field; + } /*! @@ -1984,26 +3387,38 @@ class CompleteTestType * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); + const std::vector& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum2_field * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); + std::vector&& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum2_field * @return Constant reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const + { + return m_bounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum2_field * @return Reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum2_field() + { + return m_bounded_sequence_enum2_field; + } /*! @@ -2011,26 +3426,38 @@ class CompleteTestType * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); + const std::vector& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + } /*! * @brief This function moves the value in member bounded_sequence_struct_field * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); + std::vector&& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_struct_field * @return Constant reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const + { + return m_bounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member bounded_sequence_struct_field * @return Reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& bounded_sequence_struct_field() + { + return m_bounded_sequence_struct_field; + } /*! @@ -2038,26 +3465,38 @@ class CompleteTestType * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); + const std::vector& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + } /*! * @brief This function moves the value in member unbounded_sequence_char_field * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); + std::vector&& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_char_field * @return Constant reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const + { + return m_unbounded_sequence_char_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_char_field * @return Reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_char_field() + { + return m_unbounded_sequence_char_field; + } /*! @@ -2065,26 +3504,38 @@ class CompleteTestType * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); + const std::vector& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint8_field * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); + std::vector&& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint8_field * @return Constant reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const + { + return m_unbounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint8_field * @return Reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field() + { + return m_unbounded_sequence_uint8_field; + } /*! @@ -2092,26 +3543,38 @@ class CompleteTestType * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); + const std::vector& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int16_field * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); + std::vector&& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int16_field * @return Constant reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const + { + return m_unbounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int16_field * @return Reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int16_field() + { + return m_unbounded_sequence_int16_field; + } /*! @@ -2119,26 +3582,38 @@ class CompleteTestType * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); + const std::vector& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint16_field * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); + std::vector&& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint16_field * @return Constant reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const + { + return m_unbounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint16_field * @return Reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field() + { + return m_unbounded_sequence_uint16_field; + } /*! @@ -2146,26 +3621,38 @@ class CompleteTestType * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); + const std::vector& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int32_field * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); + std::vector&& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int32_field * @return Constant reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const + { + return m_unbounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int32_field * @return Reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int32_field() + { + return m_unbounded_sequence_int32_field; + } /*! @@ -2173,26 +3660,38 @@ class CompleteTestType * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); + const std::vector& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint32_field * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); + std::vector&& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint32_field * @return Constant reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const + { + return m_unbounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint32_field * @return Reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field() + { + return m_unbounded_sequence_uint32_field; + } /*! @@ -2200,26 +3699,38 @@ class CompleteTestType * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); + const std::vector& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int64_field * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); + std::vector&& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int64_field * @return Constant reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const + { + return m_unbounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int64_field * @return Reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int64_field() + { + return m_unbounded_sequence_int64_field; + } /*! @@ -2227,26 +3738,38 @@ class CompleteTestType * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); + const std::vector& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint64_field * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); + std::vector&& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint64_field * @return Constant reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const + { + return m_unbounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint64_field * @return Reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field() + { + return m_unbounded_sequence_uint64_field; + } /*! @@ -2254,26 +3777,38 @@ class CompleteTestType * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); + const std::vector& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + } /*! * @brief This function moves the value in member unbounded_sequence_float_field * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); + std::vector&& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_float_field * @return Constant reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const + { + return m_unbounded_sequence_float_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_float_field * @return Reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_float_field() + { + return m_unbounded_sequence_float_field; + } /*! @@ -2281,26 +3816,38 @@ class CompleteTestType * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); + const std::vector& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + } /*! * @brief This function moves the value in member unbounded_sequence_double_field * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); + std::vector&& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_double_field * @return Constant reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const + { + return m_unbounded_sequence_double_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_double_field * @return Reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_double_field() + { + return m_unbounded_sequence_double_field; + } /*! @@ -2308,26 +3855,38 @@ class CompleteTestType * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); + const std::vector& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + } /*! * @brief This function moves the value in member unbounded_sequence_bool_field * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); + std::vector&& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_bool_field * @return Constant reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const + { + return m_unbounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_bool_field * @return Reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_bool_field() + { + return m_unbounded_sequence_bool_field; + } /*! @@ -2335,26 +3894,38 @@ class CompleteTestType * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); + const std::vector& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum_field * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); + std::vector&& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum_field * @return Constant reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const + { + return m_unbounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum_field * @return Reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum_field() + { + return m_unbounded_sequence_enum_field; + } /*! @@ -2362,26 +3933,38 @@ class CompleteTestType * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); + const std::vector& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum2_field * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); + std::vector&& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum2_field * @return Constant reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const + { + return m_unbounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum2_field * @return Reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field() + { + return m_unbounded_sequence_enum2_field; + } /*! @@ -2389,26 +3972,40 @@ class CompleteTestType * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); + const std::vector& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + } /*! * @brief This function moves the value in member unbounded_sequence_struct_field * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); + std::vector&& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_struct_field * @return Constant reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const + { + return m_unbounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_struct_field * @return Reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_struct_field() + { + return m_unbounded_sequence_struct_field; + } + + private: @@ -2424,8 +4021,8 @@ class CompleteTestType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - Color m_enum_field{::RED}; - Material m_enum2_field{::WOOD}; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; StructType m_struct_field; eprosima::fastcdr::optional m_char_opt_field; eprosima::fastcdr::optional m_uint8_opt_field; @@ -2453,8 +4050,8 @@ class CompleteTestType std::array m_array_float_field{0.0}; std::array m_array_double_field{0.0}; std::array m_array_bool_field{false}; - std::array m_array_enum_field{::RED}; - std::array m_array_enum2_field{::WOOD}; + std::array m_array_enum_field{Color::RED}; + std::array m_array_enum2_field{Material::WOOD}; std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; @@ -2486,10 +4083,6 @@ class CompleteTestType std::vector m_unbounded_sequence_struct_field; }; - - - - /*! * @brief This class represents the structure KeyedCompleteTestType defined by the user in the IDL file. * @ingroup test_complete @@ -2501,73 +4094,614 @@ class KeyedCompleteTestType /*! * @brief Default constructor. */ - eProsima_user_DllExport KeyedCompleteTestType(); + eProsima_user_DllExport KeyedCompleteTestType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~KeyedCompleteTestType(); + eProsima_user_DllExport ~KeyedCompleteTestType() + { + } /*! * @brief Copy constructor. * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType( - const KeyedCompleteTestType& x); + const KeyedCompleteTestType& x) + { + m_id = x.m_id; + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + } /*! * @brief Move constructor. * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept; + KeyedCompleteTestType&& x) noexcept + { + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + } /*! * @brief Copy assignment. * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType& operator =( - const KeyedCompleteTestType& x); + const KeyedCompleteTestType& x) + { + + m_id = x.m_id; + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; + } /*! * @brief Move assignment. * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType& operator =( - KeyedCompleteTestType&& x) noexcept; + KeyedCompleteTestType&& x) noexcept + { + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + return *this; + } /*! * @brief Comparison operator. * @param x KeyedCompleteTestType object to compare. */ eProsima_user_DllExport bool operator ==( - const KeyedCompleteTestType& x) const; + const KeyedCompleteTestType& x) const + { + return (m_id == x.m_id && + m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + } /*! * @brief Comparison operator. * @param x KeyedCompleteTestType object to compare. */ eProsima_user_DllExport bool operator !=( - const KeyedCompleteTestType& x) const; + const KeyedCompleteTestType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member id * @param _id New value for member id */ eProsima_user_DllExport void id( - int32_t _id); + int32_t _id) + { + m_id = _id; + } /*! * @brief This function returns the value of member id * @return Value of member id */ - eProsima_user_DllExport int32_t id() const; + eProsima_user_DllExport int32_t id() const + { + return m_id; + } /*! * @brief This function returns a reference to member id * @return Reference to member id */ - eProsima_user_DllExport int32_t& id(); + eProsima_user_DllExport int32_t& id() + { + return m_id; + } /*! @@ -2575,19 +4709,28 @@ class KeyedCompleteTestType * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -2595,19 +4738,28 @@ class KeyedCompleteTestType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -2615,19 +4767,28 @@ class KeyedCompleteTestType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -2635,19 +4796,28 @@ class KeyedCompleteTestType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -2655,19 +4825,28 @@ class KeyedCompleteTestType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -2675,19 +4854,28 @@ class KeyedCompleteTestType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -2695,19 +4883,28 @@ class KeyedCompleteTestType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -2715,19 +4912,28 @@ class KeyedCompleteTestType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -2735,19 +4941,28 @@ class KeyedCompleteTestType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -2755,19 +4970,28 @@ class KeyedCompleteTestType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -2775,19 +4999,28 @@ class KeyedCompleteTestType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -2795,26 +5028,38 @@ class KeyedCompleteTestType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -2822,19 +5067,28 @@ class KeyedCompleteTestType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -2842,19 +5096,28 @@ class KeyedCompleteTestType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } /*! @@ -2862,26 +5125,38 @@ class KeyedCompleteTestType * @param _struct_field New value to be copied in member struct_field */ eProsima_user_DllExport void struct_field( - const StructType& _struct_field); + const StructType& _struct_field) + { + m_struct_field = _struct_field; + } /*! * @brief This function moves the value in member struct_field * @param _struct_field New value to be moved in member struct_field */ eProsima_user_DllExport void struct_field( - StructType&& _struct_field); + StructType&& _struct_field) + { + m_struct_field = std::move(_struct_field); + } /*! * @brief This function returns a constant reference to member struct_field * @return Constant reference to member struct_field */ - eProsima_user_DllExport const StructType& struct_field() const; + eProsima_user_DllExport const StructType& struct_field() const + { + return m_struct_field; + } /*! * @brief This function returns a reference to member struct_field * @return Reference to member struct_field */ - eProsima_user_DllExport StructType& struct_field(); + eProsima_user_DllExport StructType& struct_field() + { + return m_struct_field; + } /*! @@ -2889,26 +5164,38 @@ class KeyedCompleteTestType * @param _char_opt_field New value to be copied in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field); + const eprosima::fastcdr::optional& _char_opt_field) + { + m_char_opt_field = _char_opt_field; + } /*! * @brief This function moves the value in member char_opt_field * @param _char_opt_field New value to be moved in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field); + eprosima::fastcdr::optional&& _char_opt_field) + { + m_char_opt_field = std::move(_char_opt_field); + } /*! * @brief This function returns a constant reference to member char_opt_field * @return Constant reference to member char_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const + { + return m_char_opt_field; + } /*! * @brief This function returns a reference to member char_opt_field * @return Reference to member char_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field() + { + return m_char_opt_field; + } /*! @@ -2916,26 +5203,38 @@ class KeyedCompleteTestType * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field); + const eprosima::fastcdr::optional& _uint8_opt_field) + { + m_uint8_opt_field = _uint8_opt_field; + } /*! * @brief This function moves the value in member uint8_opt_field * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field); + eprosima::fastcdr::optional&& _uint8_opt_field) + { + m_uint8_opt_field = std::move(_uint8_opt_field); + } /*! * @brief This function returns a constant reference to member uint8_opt_field * @return Constant reference to member uint8_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const + { + return m_uint8_opt_field; + } /*! * @brief This function returns a reference to member uint8_opt_field * @return Reference to member uint8_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field() + { + return m_uint8_opt_field; + } /*! @@ -2943,26 +5242,38 @@ class KeyedCompleteTestType * @param _int16_opt_field New value to be copied in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field); + const eprosima::fastcdr::optional& _int16_opt_field) + { + m_int16_opt_field = _int16_opt_field; + } /*! * @brief This function moves the value in member int16_opt_field * @param _int16_opt_field New value to be moved in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field); + eprosima::fastcdr::optional&& _int16_opt_field) + { + m_int16_opt_field = std::move(_int16_opt_field); + } /*! * @brief This function returns a constant reference to member int16_opt_field * @return Constant reference to member int16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const + { + return m_int16_opt_field; + } /*! * @brief This function returns a reference to member int16_opt_field * @return Reference to member int16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field() + { + return m_int16_opt_field; + } /*! @@ -2970,26 +5281,38 @@ class KeyedCompleteTestType * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field); + const eprosima::fastcdr::optional& _uint16_opt_field) + { + m_uint16_opt_field = _uint16_opt_field; + } /*! * @brief This function moves the value in member uint16_opt_field * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field); + eprosima::fastcdr::optional&& _uint16_opt_field) + { + m_uint16_opt_field = std::move(_uint16_opt_field); + } /*! * @brief This function returns a constant reference to member uint16_opt_field * @return Constant reference to member uint16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const + { + return m_uint16_opt_field; + } /*! * @brief This function returns a reference to member uint16_opt_field * @return Reference to member uint16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field() + { + return m_uint16_opt_field; + } /*! @@ -2997,26 +5320,38 @@ class KeyedCompleteTestType * @param _int32_opt_field New value to be copied in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field); + const eprosima::fastcdr::optional& _int32_opt_field) + { + m_int32_opt_field = _int32_opt_field; + } /*! * @brief This function moves the value in member int32_opt_field * @param _int32_opt_field New value to be moved in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field); + eprosima::fastcdr::optional&& _int32_opt_field) + { + m_int32_opt_field = std::move(_int32_opt_field); + } /*! * @brief This function returns a constant reference to member int32_opt_field * @return Constant reference to member int32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const + { + return m_int32_opt_field; + } /*! * @brief This function returns a reference to member int32_opt_field * @return Reference to member int32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field() + { + return m_int32_opt_field; + } /*! @@ -3024,26 +5359,38 @@ class KeyedCompleteTestType * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field); + const eprosima::fastcdr::optional& _uint32_opt_field) + { + m_uint32_opt_field = _uint32_opt_field; + } /*! * @brief This function moves the value in member uint32_opt_field * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field); + eprosima::fastcdr::optional&& _uint32_opt_field) + { + m_uint32_opt_field = std::move(_uint32_opt_field); + } /*! * @brief This function returns a constant reference to member uint32_opt_field * @return Constant reference to member uint32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const + { + return m_uint32_opt_field; + } /*! * @brief This function returns a reference to member uint32_opt_field * @return Reference to member uint32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field() + { + return m_uint32_opt_field; + } /*! @@ -3051,26 +5398,38 @@ class KeyedCompleteTestType * @param _int64_opt_field New value to be copied in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field); + const eprosima::fastcdr::optional& _int64_opt_field) + { + m_int64_opt_field = _int64_opt_field; + } /*! * @brief This function moves the value in member int64_opt_field * @param _int64_opt_field New value to be moved in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field); + eprosima::fastcdr::optional&& _int64_opt_field) + { + m_int64_opt_field = std::move(_int64_opt_field); + } /*! * @brief This function returns a constant reference to member int64_opt_field * @return Constant reference to member int64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const + { + return m_int64_opt_field; + } /*! * @brief This function returns a reference to member int64_opt_field * @return Reference to member int64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field() + { + return m_int64_opt_field; + } /*! @@ -3078,26 +5437,38 @@ class KeyedCompleteTestType * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field); + const eprosima::fastcdr::optional& _uint64_opt_field) + { + m_uint64_opt_field = _uint64_opt_field; + } /*! * @brief This function moves the value in member uint64_opt_field * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field); + eprosima::fastcdr::optional&& _uint64_opt_field) + { + m_uint64_opt_field = std::move(_uint64_opt_field); + } /*! * @brief This function returns a constant reference to member uint64_opt_field * @return Constant reference to member uint64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const + { + return m_uint64_opt_field; + } /*! * @brief This function returns a reference to member uint64_opt_field * @return Reference to member uint64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field() + { + return m_uint64_opt_field; + } /*! @@ -3105,26 +5476,38 @@ class KeyedCompleteTestType * @param _float_opt_field New value to be copied in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field); + const eprosima::fastcdr::optional& _float_opt_field) + { + m_float_opt_field = _float_opt_field; + } /*! * @brief This function moves the value in member float_opt_field * @param _float_opt_field New value to be moved in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field); + eprosima::fastcdr::optional&& _float_opt_field) + { + m_float_opt_field = std::move(_float_opt_field); + } /*! * @brief This function returns a constant reference to member float_opt_field * @return Constant reference to member float_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const + { + return m_float_opt_field; + } /*! * @brief This function returns a reference to member float_opt_field * @return Reference to member float_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field() + { + return m_float_opt_field; + } /*! @@ -3132,26 +5515,38 @@ class KeyedCompleteTestType * @param _double_opt_field New value to be copied in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field); + const eprosima::fastcdr::optional& _double_opt_field) + { + m_double_opt_field = _double_opt_field; + } /*! * @brief This function moves the value in member double_opt_field * @param _double_opt_field New value to be moved in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field); + eprosima::fastcdr::optional&& _double_opt_field) + { + m_double_opt_field = std::move(_double_opt_field); + } /*! * @brief This function returns a constant reference to member double_opt_field * @return Constant reference to member double_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const + { + return m_double_opt_field; + } /*! * @brief This function returns a reference to member double_opt_field * @return Reference to member double_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field() + { + return m_double_opt_field; + } /*! @@ -3159,26 +5554,38 @@ class KeyedCompleteTestType * @param _bool_opt_field New value to be copied in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field); + const eprosima::fastcdr::optional& _bool_opt_field) + { + m_bool_opt_field = _bool_opt_field; + } /*! * @brief This function moves the value in member bool_opt_field * @param _bool_opt_field New value to be moved in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field); + eprosima::fastcdr::optional&& _bool_opt_field) + { + m_bool_opt_field = std::move(_bool_opt_field); + } /*! * @brief This function returns a constant reference to member bool_opt_field * @return Constant reference to member bool_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const + { + return m_bool_opt_field; + } /*! * @brief This function returns a reference to member bool_opt_field * @return Reference to member bool_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field() + { + return m_bool_opt_field; + } /*! @@ -3186,26 +5593,38 @@ class KeyedCompleteTestType * @param _string_opt_field New value to be copied in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field); + const eprosima::fastcdr::optional& _string_opt_field) + { + m_string_opt_field = _string_opt_field; + } /*! * @brief This function moves the value in member string_opt_field * @param _string_opt_field New value to be moved in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field); + eprosima::fastcdr::optional&& _string_opt_field) + { + m_string_opt_field = std::move(_string_opt_field); + } /*! * @brief This function returns a constant reference to member string_opt_field * @return Constant reference to member string_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const + { + return m_string_opt_field; + } /*! * @brief This function returns a reference to member string_opt_field * @return Reference to member string_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field() + { + return m_string_opt_field; + } /*! @@ -3213,26 +5632,38 @@ class KeyedCompleteTestType * @param _enum_opt_field New value to be copied in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field); + const eprosima::fastcdr::optional& _enum_opt_field) + { + m_enum_opt_field = _enum_opt_field; + } /*! * @brief This function moves the value in member enum_opt_field * @param _enum_opt_field New value to be moved in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field); + eprosima::fastcdr::optional&& _enum_opt_field) + { + m_enum_opt_field = std::move(_enum_opt_field); + } /*! * @brief This function returns a constant reference to member enum_opt_field * @return Constant reference to member enum_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const + { + return m_enum_opt_field; + } /*! * @brief This function returns a reference to member enum_opt_field * @return Reference to member enum_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field() + { + return m_enum_opt_field; + } /*! @@ -3240,26 +5671,38 @@ class KeyedCompleteTestType * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field); + const eprosima::fastcdr::optional& _enum2_opt_field) + { + m_enum2_opt_field = _enum2_opt_field; + } /*! * @brief This function moves the value in member enum2_opt_field * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field); + eprosima::fastcdr::optional&& _enum2_opt_field) + { + m_enum2_opt_field = std::move(_enum2_opt_field); + } /*! * @brief This function returns a constant reference to member enum2_opt_field * @return Constant reference to member enum2_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const + { + return m_enum2_opt_field; + } /*! * @brief This function returns a reference to member enum2_opt_field * @return Reference to member enum2_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field() + { + return m_enum2_opt_field; + } /*! @@ -3267,26 +5710,38 @@ class KeyedCompleteTestType * @param _struct_opt_field New value to be copied in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field); + const eprosima::fastcdr::optional& _struct_opt_field) + { + m_struct_opt_field = _struct_opt_field; + } /*! * @brief This function moves the value in member struct_opt_field * @param _struct_opt_field New value to be moved in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field); + eprosima::fastcdr::optional&& _struct_opt_field) + { + m_struct_opt_field = std::move(_struct_opt_field); + } /*! * @brief This function returns a constant reference to member struct_opt_field * @return Constant reference to member struct_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const + { + return m_struct_opt_field; + } /*! * @brief This function returns a reference to member struct_opt_field * @return Reference to member struct_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field() + { + return m_struct_opt_field; + } /*! @@ -3294,26 +5749,38 @@ class KeyedCompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field) + { + m_array_char_field = _array_char_field; + } /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field) + { + m_array_char_field = std::move(_array_char_field); + } /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const + { + return m_array_char_field; + } /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field() + { + return m_array_char_field; + } /*! @@ -3321,26 +5788,38 @@ class KeyedCompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field) + { + m_array_uint8_field = _array_uint8_field; + } /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field) + { + m_array_uint8_field = std::move(_array_uint8_field); + } /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const + { + return m_array_uint8_field; + } /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field() + { + return m_array_uint8_field; + } /*! @@ -3348,26 +5827,38 @@ class KeyedCompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field) + { + m_array_int16_field = _array_int16_field; + } /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field) + { + m_array_int16_field = std::move(_array_int16_field); + } /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const + { + return m_array_int16_field; + } /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field() + { + return m_array_int16_field; + } /*! @@ -3375,26 +5866,38 @@ class KeyedCompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field) + { + m_array_uint16_field = _array_uint16_field; + } /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field) + { + m_array_uint16_field = std::move(_array_uint16_field); + } /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const + { + return m_array_uint16_field; + } /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field() + { + return m_array_uint16_field; + } /*! @@ -3402,26 +5905,38 @@ class KeyedCompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field) + { + m_array_int32_field = _array_int32_field; + } /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field) + { + m_array_int32_field = std::move(_array_int32_field); + } /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const + { + return m_array_int32_field; + } /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field() + { + return m_array_int32_field; + } /*! @@ -3429,26 +5944,38 @@ class KeyedCompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field) + { + m_array_uint32_field = _array_uint32_field; + } /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field) + { + m_array_uint32_field = std::move(_array_uint32_field); + } /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const + { + return m_array_uint32_field; + } /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field() + { + return m_array_uint32_field; + } /*! @@ -3456,26 +5983,38 @@ class KeyedCompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field) + { + m_array_int64_field = _array_int64_field; + } /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field) + { + m_array_int64_field = std::move(_array_int64_field); + } /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const + { + return m_array_int64_field; + } /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field() + { + return m_array_int64_field; + } /*! @@ -3483,26 +6022,38 @@ class KeyedCompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field) + { + m_array_uint64_field = _array_uint64_field; + } /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field) + { + m_array_uint64_field = std::move(_array_uint64_field); + } /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const + { + return m_array_uint64_field; + } /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field() + { + return m_array_uint64_field; + } /*! @@ -3510,26 +6061,38 @@ class KeyedCompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field) + { + m_array_float_field = _array_float_field; + } /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field) + { + m_array_float_field = std::move(_array_float_field); + } /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const + { + return m_array_float_field; + } /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field() + { + return m_array_float_field; + } /*! @@ -3537,26 +6100,38 @@ class KeyedCompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field) + { + m_array_double_field = _array_double_field; + } /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field) + { + m_array_double_field = std::move(_array_double_field); + } /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const + { + return m_array_double_field; + } /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field() + { + return m_array_double_field; + } /*! @@ -3564,26 +6139,38 @@ class KeyedCompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field) + { + m_array_bool_field = _array_bool_field; + } /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field) + { + m_array_bool_field = std::move(_array_bool_field); + } /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const + { + return m_array_bool_field; + } /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field() + { + return m_array_bool_field; + } /*! @@ -3591,26 +6178,38 @@ class KeyedCompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field) + { + m_array_enum_field = _array_enum_field; + } /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field) + { + m_array_enum_field = std::move(_array_enum_field); + } /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const + { + return m_array_enum_field; + } /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field() + { + return m_array_enum_field; + } /*! @@ -3618,26 +6217,38 @@ class KeyedCompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field) + { + m_array_enum2_field = _array_enum2_field; + } /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field) + { + m_array_enum2_field = std::move(_array_enum2_field); + } /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const + { + return m_array_enum2_field; + } /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field() + { + return m_array_enum2_field; + } /*! @@ -3645,26 +6256,38 @@ class KeyedCompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field) + { + m_array_struct_field = _array_struct_field; + } /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field) + { + m_array_struct_field = std::move(_array_struct_field); + } /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const + { + return m_array_struct_field; + } /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field() + { + return m_array_struct_field; + } /*! @@ -3672,26 +6295,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); + const std::vector& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = _bounded_sequence_char_field; + } /*! * @brief This function moves the value in member bounded_sequence_char_field * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); + std::vector&& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_char_field * @return Constant reference to member bounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const + { + return m_bounded_sequence_char_field; + } /*! * @brief This function returns a reference to member bounded_sequence_char_field * @return Reference to member bounded_sequence_char_field */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); + eProsima_user_DllExport std::vector& bounded_sequence_char_field() + { + return m_bounded_sequence_char_field; + } /*! @@ -3699,26 +6334,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); + const std::vector& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint8_field * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); + std::vector&& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint8_field * @return Constant reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const + { + return m_bounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint8_field * @return Reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint8_field() + { + return m_bounded_sequence_uint8_field; + } /*! @@ -3726,26 +6373,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); + const std::vector& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + } /*! * @brief This function moves the value in member bounded_sequence_int16_field * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); + std::vector&& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int16_field * @return Constant reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const + { + return m_bounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int16_field * @return Reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int16_field() + { + return m_bounded_sequence_int16_field; + } /*! @@ -3753,26 +6412,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); + const std::vector& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint16_field * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); + std::vector&& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint16_field * @return Constant reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const + { + return m_bounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint16_field * @return Reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint16_field() + { + return m_bounded_sequence_uint16_field; + } /*! @@ -3780,26 +6451,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); + const std::vector& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + } /*! * @brief This function moves the value in member bounded_sequence_int32_field * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); + std::vector&& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int32_field * @return Constant reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const + { + return m_bounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int32_field * @return Reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int32_field() + { + return m_bounded_sequence_int32_field; + } /*! @@ -3807,26 +6490,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); + const std::vector& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint32_field * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); + std::vector&& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint32_field * @return Constant reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const + { + return m_bounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint32_field * @return Reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint32_field() + { + return m_bounded_sequence_uint32_field; + } /*! @@ -3834,26 +6529,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); + const std::vector& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + } /*! * @brief This function moves the value in member bounded_sequence_int64_field * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); + std::vector&& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int64_field * @return Constant reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const + { + return m_bounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int64_field * @return Reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int64_field() + { + return m_bounded_sequence_int64_field; + } /*! @@ -3861,26 +6568,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); + const std::vector& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint64_field * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); + std::vector&& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint64_field * @return Constant reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const + { + return m_bounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint64_field * @return Reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint64_field() + { + return m_bounded_sequence_uint64_field; + } /*! @@ -3888,26 +6607,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); + const std::vector& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = _bounded_sequence_float_field; + } /*! * @brief This function moves the value in member bounded_sequence_float_field * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); + std::vector&& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_float_field * @return Constant reference to member bounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const + { + return m_bounded_sequence_float_field; + } /*! * @brief This function returns a reference to member bounded_sequence_float_field * @return Reference to member bounded_sequence_float_field */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); + eProsima_user_DllExport std::vector& bounded_sequence_float_field() + { + return m_bounded_sequence_float_field; + } /*! @@ -3915,26 +6646,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); + const std::vector& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = _bounded_sequence_double_field; + } /*! * @brief This function moves the value in member bounded_sequence_double_field * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); + std::vector&& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_double_field * @return Constant reference to member bounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const + { + return m_bounded_sequence_double_field; + } /*! * @brief This function returns a reference to member bounded_sequence_double_field * @return Reference to member bounded_sequence_double_field */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); + eProsima_user_DllExport std::vector& bounded_sequence_double_field() + { + return m_bounded_sequence_double_field; + } /*! @@ -3942,26 +6685,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); + const std::vector& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + } /*! * @brief This function moves the value in member bounded_sequence_bool_field * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); + std::vector&& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_bool_field * @return Constant reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const + { + return m_bounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member bounded_sequence_bool_field * @return Reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& bounded_sequence_bool_field() + { + return m_bounded_sequence_bool_field; + } /*! @@ -3969,26 +6724,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); + const std::vector& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum_field * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); + std::vector&& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum_field * @return Constant reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const + { + return m_bounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum_field * @return Reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum_field() + { + return m_bounded_sequence_enum_field; + } /*! @@ -3996,26 +6763,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); + const std::vector& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum2_field * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); + std::vector&& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum2_field * @return Constant reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const + { + return m_bounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum2_field * @return Reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum2_field() + { + return m_bounded_sequence_enum2_field; + } /*! @@ -4023,26 +6802,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); + const std::vector& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + } /*! * @brief This function moves the value in member bounded_sequence_struct_field * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); + std::vector&& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_struct_field * @return Constant reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const + { + return m_bounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member bounded_sequence_struct_field * @return Reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& bounded_sequence_struct_field() + { + return m_bounded_sequence_struct_field; + } /*! @@ -4050,26 +6841,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); + const std::vector& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + } /*! * @brief This function moves the value in member unbounded_sequence_char_field * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); + std::vector&& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_char_field * @return Constant reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const + { + return m_unbounded_sequence_char_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_char_field * @return Reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_char_field() + { + return m_unbounded_sequence_char_field; + } /*! @@ -4077,26 +6880,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); + const std::vector& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint8_field * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); + std::vector&& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint8_field * @return Constant reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const + { + return m_unbounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint8_field * @return Reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field() + { + return m_unbounded_sequence_uint8_field; + } /*! @@ -4104,26 +6919,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); + const std::vector& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int16_field * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); + std::vector&& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int16_field * @return Constant reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const + { + return m_unbounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int16_field * @return Reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int16_field() + { + return m_unbounded_sequence_int16_field; + } /*! @@ -4131,26 +6958,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); + const std::vector& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint16_field * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); + std::vector&& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint16_field * @return Constant reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const + { + return m_unbounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint16_field * @return Reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field() + { + return m_unbounded_sequence_uint16_field; + } /*! @@ -4158,26 +6997,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); + const std::vector& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int32_field * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); + std::vector&& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int32_field * @return Constant reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const + { + return m_unbounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int32_field * @return Reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int32_field() + { + return m_unbounded_sequence_int32_field; + } /*! @@ -4185,26 +7036,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); + const std::vector& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint32_field * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); + std::vector&& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint32_field * @return Constant reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const + { + return m_unbounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint32_field * @return Reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field() + { + return m_unbounded_sequence_uint32_field; + } /*! @@ -4212,26 +7075,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); + const std::vector& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int64_field * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); + std::vector&& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int64_field * @return Constant reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const + { + return m_unbounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int64_field * @return Reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int64_field() + { + return m_unbounded_sequence_int64_field; + } /*! @@ -4239,26 +7114,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); + const std::vector& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint64_field * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); + std::vector&& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint64_field * @return Constant reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const + { + return m_unbounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint64_field * @return Reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field() + { + return m_unbounded_sequence_uint64_field; + } /*! @@ -4266,26 +7153,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); + const std::vector& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + } /*! * @brief This function moves the value in member unbounded_sequence_float_field * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); + std::vector&& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_float_field * @return Constant reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const + { + return m_unbounded_sequence_float_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_float_field * @return Reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_float_field() + { + return m_unbounded_sequence_float_field; + } /*! @@ -4293,26 +7192,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); + const std::vector& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + } /*! * @brief This function moves the value in member unbounded_sequence_double_field * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); + std::vector&& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_double_field * @return Constant reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const + { + return m_unbounded_sequence_double_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_double_field * @return Reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_double_field() + { + return m_unbounded_sequence_double_field; + } /*! @@ -4320,26 +7231,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); + const std::vector& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + } /*! * @brief This function moves the value in member unbounded_sequence_bool_field * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); + std::vector&& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_bool_field * @return Constant reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const + { + return m_unbounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_bool_field * @return Reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_bool_field() + { + return m_unbounded_sequence_bool_field; + } /*! @@ -4347,26 +7270,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); + const std::vector& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum_field * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); + std::vector&& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum_field * @return Constant reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const + { + return m_unbounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum_field * @return Reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum_field() + { + return m_unbounded_sequence_enum_field; + } /*! @@ -4374,26 +7309,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); + const std::vector& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum2_field * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); + std::vector&& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum2_field * @return Constant reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const + { + return m_unbounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum2_field * @return Reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field() + { + return m_unbounded_sequence_enum2_field; + } /*! @@ -4401,26 +7348,40 @@ class KeyedCompleteTestType * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); + const std::vector& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + } /*! * @brief This function moves the value in member unbounded_sequence_struct_field * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); + std::vector&& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_struct_field * @return Constant reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const + { + return m_unbounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_struct_field * @return Reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_struct_field() + { + return m_unbounded_sequence_struct_field; + } + + private: @@ -4437,8 +7398,8 @@ class KeyedCompleteTestType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - Color m_enum_field{::RED}; - Material m_enum2_field{::WOOD}; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; StructType m_struct_field; eprosima::fastcdr::optional m_char_opt_field; eprosima::fastcdr::optional m_uint8_opt_field; @@ -4466,8 +7427,8 @@ class KeyedCompleteTestType std::array m_array_float_field{0.0}; std::array m_array_double_field{0.0}; std::array m_array_bool_field{false}; - std::array m_array_enum_field{::RED}; - std::array m_array_enum2_field{::WOOD}; + std::array m_array_enum_field{Color::RED}; + std::array m_array_enum2_field{Material::WOOD}; std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; @@ -4500,8 +7461,6 @@ class KeyedCompleteTestType }; -#endif // _FAST_DDS_GENERATED_TEST_COMPLETE_H_ - +#endif // _FAST_DDS_GENERATED_TEST_COMPLETE_HPP_ -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_complete.i b/fastdds_python/test/types/test_complete.i index a43eed15..b934ef7c 100644 --- a/fastdds_python/test/types/test_complete.i +++ b/fastdds_python/test/types/test_complete.i @@ -41,7 +41,7 @@ %include "test_included_modules.i" %{ -#include "test_complete.h" +#include "test_complete.hpp" #include %} @@ -68,8 +68,6 @@ namespace swig { %traits_penumn(enum Color); %traits_penumn(enum Material); - - //////////////////////////////////////////////////////// // Binding for class StructType //////////////////////////////////////////////////////// @@ -262,12 +260,6 @@ namespace swig { - - - - - - //////////////////////////////////////////////////////// // Binding for class CompleteTestType //////////////////////////////////////////////////////// @@ -1551,10 +1543,6 @@ namespace swig { } } - - - - //////////////////////////////////////////////////////// // Binding for class KeyedCompleteTestType //////////////////////////////////////////////////////// @@ -2851,8 +2839,7 @@ namespace swig { // Include the class interfaces -%include "test_complete.h" -%include "test_completev1.h" +%include "test_complete.hpp" // Include the corresponding TopicDataType %include "test_completePubSubTypes.i" diff --git a/fastdds_python/test/types/test_completeCdrAux.hpp b/fastdds_python/test/types/test_completeCdrAux.hpp index 25dd9394..b96cb620 100644 --- a/fastdds_python/test/types/test_completeCdrAux.hpp +++ b/fastdds_python/test/types/test_completeCdrAux.hpp @@ -22,9 +22,9 @@ #ifndef _FAST_DDS_GENERATED_TEST_COMPLETECDRAUX_HPP_ #define _FAST_DDS_GENERATED_TEST_COMPLETECDRAUX_HPP_ -#include "test_complete.h" +#include "test_complete.hpp" -constexpr uint32_t CompleteTestType_max_cdr_typesize {78608UL}; +constexpr uint32_t CompleteTestType_max_cdr_typesize {7900UL}; constexpr uint32_t CompleteTestType_max_key_cdr_typesize {0UL}; @@ -34,7 +34,7 @@ constexpr uint32_t StructType_max_key_cdr_typesize {0UL}; -constexpr uint32_t KeyedCompleteTestType_max_cdr_typesize {78608UL}; +constexpr uint32_t KeyedCompleteTestType_max_cdr_typesize {7900UL}; constexpr uint32_t KeyedCompleteTestType_max_key_cdr_typesize {4UL}; @@ -45,28 +45,16 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const StructType& data); - - - - - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const CompleteTestType& data); - - - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const KeyedCompleteTestType& data); diff --git a/fastdds_python/test/types/test_completeCdrAux.ipp b/fastdds_python/test/types/test_completeCdrAux.ipp index 213ea1e8..f9a03cf1 100644 --- a/fastdds_python/test/types/test_completeCdrAux.ipp +++ b/fastdds_python/test/types/test_completeCdrAux.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, @@ -226,12 +224,6 @@ void serialize_key( - - - - - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -876,10 +868,6 @@ void serialize_key( } - - - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, diff --git a/fastdds_python/test/types/test_completePubSubTypes.cxx b/fastdds_python/test/types/test_completePubSubTypes.cxx index 52fdae28..19693c5e 100644 --- a/fastdds_python/test/types/test_completePubSubTypes.cxx +++ b/fastdds_python/test/types/test_completePubSubTypes.cxx @@ -19,18 +19,18 @@ * This file was generated by the tool fastddsgen. */ +#include "test_completePubSubTypes.h" +#include #include -#include "test_completePubSubTypes.h" #include "test_completeCdrAux.hpp" +#include "test_completeTypeObjectSupport.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; - - StructTypePubSubType::StructTypePubSubType() { setName("StructType"); @@ -219,11 +219,10 @@ bool StructTypePubSubType::getKey( return true; } - - - - - +void StructTypePubSubType::register_type_object_representation() const +{ + register_test_complete_type_objects(); +} @@ -415,9 +414,10 @@ bool CompleteTestTypePubSubType::getKey( return true; } - - - +void CompleteTestTypePubSubType::register_type_object_representation() const +{ + register_test_complete_type_objects(); +} KeyedCompleteTestTypePubSubType::KeyedCompleteTestTypePubSubType() { @@ -607,3 +607,11 @@ bool KeyedCompleteTestTypePubSubType::getKey( return true; } +void KeyedCompleteTestTypePubSubType::register_type_object_representation() const +{ + register_test_complete_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "test_completeCdrAux.ipp" diff --git a/fastdds_python/test/types/test_completePubSubTypes.h b/fastdds_python/test/types/test_completePubSubTypes.h index 623058d9..497106c3 100644 --- a/fastdds_python/test/types/test_completePubSubTypes.h +++ b/fastdds_python/test/types/test_completePubSubTypes.h @@ -29,7 +29,7 @@ #include #include -#include "test_complete.h" +#include "test_complete.hpp" #include "test_included_modulesPubSubTypes.h" @@ -39,8 +39,6 @@ #endif // GEN_API_VER - - /*! * @brief This class represents the TopicDataType of the type StructType defined by the user in the IDL file. * @ingroup test_complete @@ -91,6 +89,9 @@ class StructTypePubSubType : public eprosima::fastdds::dds::TopicDataType 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 { @@ -131,12 +132,6 @@ class StructTypePubSubType : public eprosima::fastdds::dds::TopicDataType - - - - - - /*! * @brief This class represents the TopicDataType of the type CompleteTestType defined by the user in the IDL file. * @ingroup test_complete @@ -187,6 +182,9 @@ class CompleteTestTypePubSubType : public eprosima::fastdds::dds::TopicDataType 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,10 +223,6 @@ class CompleteTestTypePubSubType : public eprosima::fastdds::dds::TopicDataType }; - - - - /*! * @brief This class represents the TopicDataType of the type KeyedCompleteTestType defined by the user in the IDL file. * @ingroup test_complete @@ -279,6 +273,9 @@ class KeyedCompleteTestTypePubSubType : public eprosima::fastdds::dds::TopicData 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/fastdds_python/test/types/test_completeTypeObjectSupport.cxx b/fastdds_python/test/types/test_completeTypeObjectSupport.cxx new file mode 100644 index 00000000..7bd65865 --- /dev/null +++ b/fastdds_python/test/types/test_completeTypeObjectSupport.cxx @@ -0,0 +1,44189 @@ +// 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 test_completeTypeObjectSupport.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 "test_completeTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "test_complete.hpp" + +#include "test_included_modules.hpp" + +using namespace eprosima::fastdds::dds::xtypes; + +void register_test_complete_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + eprosima::test2::register_eprosima_test2_StructType2_type_identifier(); + + register_StructType_type_identifier(); + + register_CompleteTestType_type_identifier(); + + register_KeyedCompleteTestType_type_identifier(); + + }); +} + +void register_StructType_type_identifier() +{ + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_CompleteTestType_type_identifier() +{ + { + StructTypeFlag struct_flags_CompleteTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_CompleteTestType; + TypeIdentifierPair type_ids_CompleteTestType; + QualifiedTypeName type_name_CompleteTestType = "CompleteTestType"; + eprosima::fastcdr::optional type_ann_builtin_CompleteTestType; + eprosima::fastcdr::optional ann_custom_CompleteTestType; + CompleteTypeDetail detail_CompleteTestType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_CompleteTestType, ann_custom_CompleteTestType, type_name_CompleteTestType.to_string()); + CompleteStructHeader header_CompleteTestType; + header_CompleteTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_CompleteTestType); + CompleteStructMemberSeq member_seq_CompleteTestType; + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_CompleteTestType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_string_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_struct_field; + MemberId member_id_struct_field = 0x0000000e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_field = "struct_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_struct_field = TypeObjectUtils::build_complete_member_detail(name_struct_field, member_ann_builtin_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_struct_field = TypeObjectUtils::build_complete_struct_member(common_struct_field, detail_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_char_opt_field; + MemberId member_id_char_opt_field = 0x0000000f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_opt_field = "char_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_char_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_char_opt_field; + eprosima::fastcdr::optional unit_char_opt_field; + eprosima::fastcdr::optional min_char_opt_field; + eprosima::fastcdr::optional max_char_opt_field; + eprosima::fastcdr::optional hash_id_char_opt_field; + if (unit_char_opt_field.has_value() || min_char_opt_field.has_value() || max_char_opt_field.has_value() || hash_id_char_opt_field.has_value()) + { + member_ann_builtin_char_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_char_opt_field, min_char_opt_field, max_char_opt_field, hash_id_char_opt_field); + } + if (!tmp_ann_custom_char_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_char_opt_field; + } + CompleteMemberDetail detail_char_opt_field = TypeObjectUtils::build_complete_member_detail(name_char_opt_field, member_ann_builtin_char_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_char_opt_field = TypeObjectUtils::build_complete_struct_member(common_char_opt_field, detail_char_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_char_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint8_opt_field; + MemberId member_id_uint8_opt_field = 0x00000010; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_opt_field = "uint8_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint8_opt_field; + eprosima::fastcdr::optional unit_uint8_opt_field; + eprosima::fastcdr::optional min_uint8_opt_field; + eprosima::fastcdr::optional max_uint8_opt_field; + eprosima::fastcdr::optional hash_id_uint8_opt_field; + if (unit_uint8_opt_field.has_value() || min_uint8_opt_field.has_value() || max_uint8_opt_field.has_value() || hash_id_uint8_opt_field.has_value()) + { + member_ann_builtin_uint8_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint8_opt_field, min_uint8_opt_field, max_uint8_opt_field, hash_id_uint8_opt_field); + } + if (!tmp_ann_custom_uint8_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint8_opt_field; + } + CompleteMemberDetail detail_uint8_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint8_opt_field, member_ann_builtin_uint8_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint8_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint8_opt_field, detail_uint8_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint8_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int16_opt_field; + MemberId member_id_int16_opt_field = 0x00000011; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_opt_field = "int16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int16_opt_field; + eprosima::fastcdr::optional unit_int16_opt_field; + eprosima::fastcdr::optional min_int16_opt_field; + eprosima::fastcdr::optional max_int16_opt_field; + eprosima::fastcdr::optional hash_id_int16_opt_field; + if (unit_int16_opt_field.has_value() || min_int16_opt_field.has_value() || max_int16_opt_field.has_value() || hash_id_int16_opt_field.has_value()) + { + member_ann_builtin_int16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int16_opt_field, min_int16_opt_field, max_int16_opt_field, hash_id_int16_opt_field); + } + if (!tmp_ann_custom_int16_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int16_opt_field; + } + CompleteMemberDetail detail_int16_opt_field = TypeObjectUtils::build_complete_member_detail(name_int16_opt_field, member_ann_builtin_int16_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int16_opt_field = TypeObjectUtils::build_complete_struct_member(common_int16_opt_field, detail_int16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int16_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint16_opt_field; + MemberId member_id_uint16_opt_field = 0x00000012; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_opt_field = "uint16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint16_opt_field; + eprosima::fastcdr::optional unit_uint16_opt_field; + eprosima::fastcdr::optional min_uint16_opt_field; + eprosima::fastcdr::optional max_uint16_opt_field; + eprosima::fastcdr::optional hash_id_uint16_opt_field; + if (unit_uint16_opt_field.has_value() || min_uint16_opt_field.has_value() || max_uint16_opt_field.has_value() || hash_id_uint16_opt_field.has_value()) + { + member_ann_builtin_uint16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint16_opt_field, min_uint16_opt_field, max_uint16_opt_field, hash_id_uint16_opt_field); + } + if (!tmp_ann_custom_uint16_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint16_opt_field; + } + CompleteMemberDetail detail_uint16_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint16_opt_field, member_ann_builtin_uint16_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint16_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint16_opt_field, detail_uint16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint16_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int32_opt_field; + MemberId member_id_int32_opt_field = 0x00000013; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_opt_field = "int32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int32_opt_field; + eprosima::fastcdr::optional unit_int32_opt_field; + eprosima::fastcdr::optional min_int32_opt_field; + eprosima::fastcdr::optional max_int32_opt_field; + eprosima::fastcdr::optional hash_id_int32_opt_field; + if (unit_int32_opt_field.has_value() || min_int32_opt_field.has_value() || max_int32_opt_field.has_value() || hash_id_int32_opt_field.has_value()) + { + member_ann_builtin_int32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int32_opt_field, min_int32_opt_field, max_int32_opt_field, hash_id_int32_opt_field); + } + if (!tmp_ann_custom_int32_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int32_opt_field; + } + CompleteMemberDetail detail_int32_opt_field = TypeObjectUtils::build_complete_member_detail(name_int32_opt_field, member_ann_builtin_int32_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int32_opt_field = TypeObjectUtils::build_complete_struct_member(common_int32_opt_field, detail_int32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int32_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint32_opt_field; + MemberId member_id_uint32_opt_field = 0x00000014; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_opt_field = "uint32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint32_opt_field; + eprosima::fastcdr::optional unit_uint32_opt_field; + eprosima::fastcdr::optional min_uint32_opt_field; + eprosima::fastcdr::optional max_uint32_opt_field; + eprosima::fastcdr::optional hash_id_uint32_opt_field; + if (unit_uint32_opt_field.has_value() || min_uint32_opt_field.has_value() || max_uint32_opt_field.has_value() || hash_id_uint32_opt_field.has_value()) + { + member_ann_builtin_uint32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint32_opt_field, min_uint32_opt_field, max_uint32_opt_field, hash_id_uint32_opt_field); + } + if (!tmp_ann_custom_uint32_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint32_opt_field; + } + CompleteMemberDetail detail_uint32_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint32_opt_field, member_ann_builtin_uint32_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint32_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint32_opt_field, detail_uint32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint32_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int64_opt_field; + MemberId member_id_int64_opt_field = 0x00000015; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_opt_field = "int64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int64_opt_field; + eprosima::fastcdr::optional unit_int64_opt_field; + eprosima::fastcdr::optional min_int64_opt_field; + eprosima::fastcdr::optional max_int64_opt_field; + eprosima::fastcdr::optional hash_id_int64_opt_field; + if (unit_int64_opt_field.has_value() || min_int64_opt_field.has_value() || max_int64_opt_field.has_value() || hash_id_int64_opt_field.has_value()) + { + member_ann_builtin_int64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int64_opt_field, min_int64_opt_field, max_int64_opt_field, hash_id_int64_opt_field); + } + if (!tmp_ann_custom_int64_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int64_opt_field; + } + CompleteMemberDetail detail_int64_opt_field = TypeObjectUtils::build_complete_member_detail(name_int64_opt_field, member_ann_builtin_int64_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int64_opt_field = TypeObjectUtils::build_complete_struct_member(common_int64_opt_field, detail_int64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int64_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint64_opt_field; + MemberId member_id_uint64_opt_field = 0x00000016; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_opt_field = "uint64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint64_opt_field; + eprosima::fastcdr::optional unit_uint64_opt_field; + eprosima::fastcdr::optional min_uint64_opt_field; + eprosima::fastcdr::optional max_uint64_opt_field; + eprosima::fastcdr::optional hash_id_uint64_opt_field; + if (unit_uint64_opt_field.has_value() || min_uint64_opt_field.has_value() || max_uint64_opt_field.has_value() || hash_id_uint64_opt_field.has_value()) + { + member_ann_builtin_uint64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint64_opt_field, min_uint64_opt_field, max_uint64_opt_field, hash_id_uint64_opt_field); + } + if (!tmp_ann_custom_uint64_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint64_opt_field; + } + CompleteMemberDetail detail_uint64_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint64_opt_field, member_ann_builtin_uint64_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint64_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint64_opt_field, detail_uint64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint64_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_float_opt_field; + MemberId member_id_float_opt_field = 0x00000017; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_opt_field = "float_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_float_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_float_opt_field; + eprosima::fastcdr::optional unit_float_opt_field; + eprosima::fastcdr::optional min_float_opt_field; + eprosima::fastcdr::optional max_float_opt_field; + eprosima::fastcdr::optional hash_id_float_opt_field; + if (unit_float_opt_field.has_value() || min_float_opt_field.has_value() || max_float_opt_field.has_value() || hash_id_float_opt_field.has_value()) + { + member_ann_builtin_float_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_float_opt_field, min_float_opt_field, max_float_opt_field, hash_id_float_opt_field); + } + if (!tmp_ann_custom_float_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_float_opt_field; + } + CompleteMemberDetail detail_float_opt_field = TypeObjectUtils::build_complete_member_detail(name_float_opt_field, member_ann_builtin_float_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_float_opt_field = TypeObjectUtils::build_complete_struct_member(common_float_opt_field, detail_float_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_float_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_double_opt_field; + MemberId member_id_double_opt_field = 0x00000018; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_opt_field = "double_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_double_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_double_opt_field; + eprosima::fastcdr::optional unit_double_opt_field; + eprosima::fastcdr::optional min_double_opt_field; + eprosima::fastcdr::optional max_double_opt_field; + eprosima::fastcdr::optional hash_id_double_opt_field; + if (unit_double_opt_field.has_value() || min_double_opt_field.has_value() || max_double_opt_field.has_value() || hash_id_double_opt_field.has_value()) + { + member_ann_builtin_double_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_double_opt_field, min_double_opt_field, max_double_opt_field, hash_id_double_opt_field); + } + if (!tmp_ann_custom_double_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_double_opt_field; + } + CompleteMemberDetail detail_double_opt_field = TypeObjectUtils::build_complete_member_detail(name_double_opt_field, member_ann_builtin_double_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_double_opt_field = TypeObjectUtils::build_complete_struct_member(common_double_opt_field, detail_double_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_double_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_bool_opt_field; + MemberId member_id_bool_opt_field = 0x00000019; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_opt_field = "bool_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_bool_opt_field; + eprosima::fastcdr::optional unit_bool_opt_field; + eprosima::fastcdr::optional min_bool_opt_field; + eprosima::fastcdr::optional max_bool_opt_field; + eprosima::fastcdr::optional hash_id_bool_opt_field; + if (unit_bool_opt_field.has_value() || min_bool_opt_field.has_value() || max_bool_opt_field.has_value() || hash_id_bool_opt_field.has_value()) + { + member_ann_builtin_bool_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_bool_opt_field, min_bool_opt_field, max_bool_opt_field, hash_id_bool_opt_field); + } + if (!tmp_ann_custom_bool_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_bool_opt_field; + } + CompleteMemberDetail detail_bool_opt_field = TypeObjectUtils::build_complete_member_detail(name_bool_opt_field, member_ann_builtin_bool_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_bool_opt_field = TypeObjectUtils::build_complete_struct_member(common_bool_opt_field, detail_bool_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bool_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_string_opt_field; + MemberId member_id_string_opt_field = 0x0000001a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_opt_field = "string_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_string_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_string_opt_field; + eprosima::fastcdr::optional unit_string_opt_field; + eprosima::fastcdr::optional min_string_opt_field; + eprosima::fastcdr::optional max_string_opt_field; + eprosima::fastcdr::optional hash_id_string_opt_field; + if (unit_string_opt_field.has_value() || min_string_opt_field.has_value() || max_string_opt_field.has_value() || hash_id_string_opt_field.has_value()) + { + member_ann_builtin_string_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_string_opt_field, min_string_opt_field, max_string_opt_field, hash_id_string_opt_field); + } + if (!tmp_ann_custom_string_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_string_opt_field; + } + CompleteMemberDetail detail_string_opt_field = TypeObjectUtils::build_complete_member_detail(name_string_opt_field, member_ann_builtin_string_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_string_opt_field = TypeObjectUtils::build_complete_struct_member(common_string_opt_field, detail_string_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_string_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum_opt_field; + MemberId member_id_enum_opt_field = 0x0000001b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_opt_field = "enum_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum_opt_field; + eprosima::fastcdr::optional unit_enum_opt_field; + eprosima::fastcdr::optional min_enum_opt_field; + eprosima::fastcdr::optional max_enum_opt_field; + eprosima::fastcdr::optional hash_id_enum_opt_field; + if (unit_enum_opt_field.has_value() || min_enum_opt_field.has_value() || max_enum_opt_field.has_value() || hash_id_enum_opt_field.has_value()) + { + member_ann_builtin_enum_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum_opt_field, min_enum_opt_field, max_enum_opt_field, hash_id_enum_opt_field); + } + if (!tmp_ann_custom_enum_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_enum_opt_field; + } + CompleteMemberDetail detail_enum_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum_opt_field, member_ann_builtin_enum_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum_opt_field, detail_enum_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum2_opt_field; + MemberId member_id_enum2_opt_field = 0x0000001c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_opt_field = "enum2_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum2_opt_field; + eprosima::fastcdr::optional unit_enum2_opt_field; + eprosima::fastcdr::optional min_enum2_opt_field; + eprosima::fastcdr::optional max_enum2_opt_field; + eprosima::fastcdr::optional hash_id_enum2_opt_field; + if (unit_enum2_opt_field.has_value() || min_enum2_opt_field.has_value() || max_enum2_opt_field.has_value() || hash_id_enum2_opt_field.has_value()) + { + member_ann_builtin_enum2_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum2_opt_field, min_enum2_opt_field, max_enum2_opt_field, hash_id_enum2_opt_field); + } + if (!tmp_ann_custom_enum2_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_enum2_opt_field; + } + CompleteMemberDetail detail_enum2_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum2_opt_field, member_ann_builtin_enum2_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum2_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum2_opt_field, detail_enum2_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum2_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_struct_opt_field; + MemberId member_id_struct_opt_field = 0x0000001d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_opt_field = "struct_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_struct_opt_field; + eprosima::fastcdr::optional unit_struct_opt_field; + eprosima::fastcdr::optional min_struct_opt_field; + eprosima::fastcdr::optional max_struct_opt_field; + eprosima::fastcdr::optional hash_id_struct_opt_field; + if (unit_struct_opt_field.has_value() || min_struct_opt_field.has_value() || max_struct_opt_field.has_value() || hash_id_struct_opt_field.has_value()) + { + member_ann_builtin_struct_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_struct_opt_field, min_struct_opt_field, max_struct_opt_field, hash_id_struct_opt_field); + } + if (!tmp_ann_custom_struct_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_struct_opt_field; + } + CompleteMemberDetail detail_struct_opt_field = TypeObjectUtils::build_complete_member_detail(name_struct_opt_field, member_ann_builtin_struct_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_struct_opt_field = TypeObjectUtils::build_complete_struct_member(common_struct_opt_field, detail_struct_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_struct_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_char_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_3 = 0; + PlainCollectionHeader header_anonymous_array_char_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_3, element_flags_anonymous_array_char_3); + std::string type_id_kind_anonymous_array_char_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_char_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_char_field; + MemberId member_id_array_char_field = 0x0000001e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_char_field = "array_char_field"; + eprosima::fastcdr::optional member_ann_builtin_array_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_char_field = TypeObjectUtils::build_complete_member_detail(name_array_char_field, member_ann_builtin_array_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_char_field = TypeObjectUtils::build_complete_struct_member(common_array_char_field, detail_array_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint8_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint8_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint8_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint8_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_3, element_flags_anonymous_array_uint8_t_3); + std::string type_id_kind_anonymous_array_uint8_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint8_field; + MemberId member_id_array_uint8_field = 0x0000001f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint8_field = "array_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint8_field = TypeObjectUtils::build_complete_member_detail(name_array_uint8_field, member_ann_builtin_array_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint8_field = TypeObjectUtils::build_complete_struct_member(common_array_uint8_field, detail_array_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_3, element_flags_anonymous_array_int16_t_3); + std::string type_id_kind_anonymous_array_int16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int16_field; + MemberId member_id_array_int16_field = 0x00000020; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int16_field = "array_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int16_field = TypeObjectUtils::build_complete_member_detail(name_array_int16_field, member_ann_builtin_array_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int16_field = TypeObjectUtils::build_complete_struct_member(common_array_int16_field, detail_array_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint16_t_3, element_flags_anonymous_array_uint16_t_3); + std::string type_id_kind_anonymous_array_uint16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint16_field; + MemberId member_id_array_uint16_field = 0x00000021; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint16_field = "array_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint16_field = TypeObjectUtils::build_complete_member_detail(name_array_uint16_field, member_ann_builtin_array_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint16_field = TypeObjectUtils::build_complete_struct_member(common_array_uint16_field, detail_array_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int32_t_3, element_flags_anonymous_array_int32_t_3); + std::string type_id_kind_anonymous_array_int32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int32_field; + MemberId member_id_array_int32_field = 0x00000022; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int32_field = "array_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int32_field = TypeObjectUtils::build_complete_member_detail(name_array_int32_field, member_ann_builtin_array_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int32_field = TypeObjectUtils::build_complete_struct_member(common_array_int32_field, detail_array_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint32_t_3, element_flags_anonymous_array_uint32_t_3); + std::string type_id_kind_anonymous_array_uint32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint32_field; + MemberId member_id_array_uint32_field = 0x00000023; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint32_field = "array_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint32_field = TypeObjectUtils::build_complete_member_detail(name_array_uint32_field, member_ann_builtin_array_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint32_field = TypeObjectUtils::build_complete_struct_member(common_array_uint32_field, detail_array_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int64_t_3, element_flags_anonymous_array_int64_t_3); + std::string type_id_kind_anonymous_array_int64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int64_field; + MemberId member_id_array_int64_field = 0x00000024; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int64_field = "array_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int64_field = TypeObjectUtils::build_complete_member_detail(name_array_int64_field, member_ann_builtin_array_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int64_field = TypeObjectUtils::build_complete_struct_member(common_array_int64_field, detail_array_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint64_t_3, element_flags_anonymous_array_uint64_t_3); + std::string type_id_kind_anonymous_array_uint64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint64_field; + MemberId member_id_array_uint64_field = 0x00000025; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint64_field = "array_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint64_field = TypeObjectUtils::build_complete_member_detail(name_array_uint64_field, member_ann_builtin_array_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint64_field = TypeObjectUtils::build_complete_struct_member(common_array_uint64_field, detail_array_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_float_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_float_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_float_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_float_3 = 0; + PlainCollectionHeader header_anonymous_array_float_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_float_3, element_flags_anonymous_array_float_3); + std::string type_id_kind_anonymous_array_float_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_float_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_float_field; + MemberId member_id_array_float_field = 0x00000026; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_float_field = "array_float_field"; + eprosima::fastcdr::optional member_ann_builtin_array_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_float_field = TypeObjectUtils::build_complete_member_detail(name_array_float_field, member_ann_builtin_array_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_float_field = TypeObjectUtils::build_complete_struct_member(common_array_float_field, detail_array_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_double_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_double_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_double_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_double_3 = 0; + PlainCollectionHeader header_anonymous_array_double_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_double_3, element_flags_anonymous_array_double_3); + std::string type_id_kind_anonymous_array_double_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_double_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_double_field; + MemberId member_id_array_double_field = 0x00000027; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_double_field = "array_double_field"; + eprosima::fastcdr::optional member_ann_builtin_array_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_double_field = TypeObjectUtils::build_complete_member_detail(name_array_double_field, member_ann_builtin_array_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_double_field = TypeObjectUtils::build_complete_struct_member(common_array_double_field, detail_array_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_bool_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_bool_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_bool_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_bool_3 = 0; + PlainCollectionHeader header_anonymous_array_bool_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_bool_3, element_flags_anonymous_array_bool_3); + std::string type_id_kind_anonymous_array_bool_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_bool_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_bool_field; + MemberId member_id_array_bool_field = 0x00000028; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_bool_field = "array_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_array_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_bool_field = TypeObjectUtils::build_complete_member_detail(name_array_bool_field, member_ann_builtin_array_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_bool_field = TypeObjectUtils::build_complete_struct_member(common_array_bool_field, detail_array_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Color_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_Color_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_Color_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_Color_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_Color_3 = 0; + PlainCollectionHeader header_anonymous_array_Color_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_Color_3, element_flags_anonymous_array_Color_3); + std::string type_id_kind_anonymous_array_Color_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_Color_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Color_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum_field; + MemberId member_id_array_enum_field = 0x00000029; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum_field = "array_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_enum_field = TypeObjectUtils::build_complete_member_detail(name_array_enum_field, member_ann_builtin_array_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_enum_field = TypeObjectUtils::build_complete_struct_member(common_array_enum_field, detail_array_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Material_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_Material_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_Material_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_Material_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_Material_3 = 0; + PlainCollectionHeader header_anonymous_array_Material_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_Material_3, element_flags_anonymous_array_Material_3); + std::string type_id_kind_anonymous_array_Material_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_Material_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Material_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum2_field; + MemberId member_id_array_enum2_field = 0x0000002a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum2_field = "array_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_enum2_field = TypeObjectUtils::build_complete_member_detail(name_array_enum2_field, member_ann_builtin_array_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_enum2_field = TypeObjectUtils::build_complete_struct_member(common_array_enum2_field, detail_array_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_StructType_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_array_StructType_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_StructType_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_StructType_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_StructType_3 = 0; + PlainCollectionHeader header_anonymous_array_StructType_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_StructType_3, element_flags_anonymous_array_StructType_3); + std::string type_id_kind_anonymous_array_StructType_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_StructType_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_StructType_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_struct_field; + MemberId member_id_array_struct_field = 0x0000002b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_struct_field = "array_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_array_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_struct_field = TypeObjectUtils::build_complete_member_detail(name_array_struct_field, member_ann_builtin_array_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_struct_field = TypeObjectUtils::build_complete_struct_member(common_array_struct_field, detail_array_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_5 = 0; + PlainCollectionHeader header_anonymous_sequence_char_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_5, element_flags_anonymous_sequence_char_5); + std::string type_id_kind_anonymous_sequence_char_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_char_field; + MemberId member_id_bounded_sequence_char_field = 0x0000002c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_char_field = "bounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_char_field, member_ann_builtin_bounded_sequence_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_char_field, detail_bounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint8_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint8_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint8_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_5, element_flags_anonymous_sequence_uint8_t_5); + std::string type_id_kind_anonymous_sequence_uint8_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint8_field; + MemberId member_id_bounded_sequence_uint8_field = 0x0000002d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint8_field = "bounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint8_field, member_ann_builtin_bounded_sequence_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint8_field, detail_bounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_5, element_flags_anonymous_sequence_int16_t_5); + std::string type_id_kind_anonymous_sequence_int16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int16_field; + MemberId member_id_bounded_sequence_int16_field = 0x0000002e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int16_field = "bounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int16_field, member_ann_builtin_bounded_sequence_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int16_field, detail_bounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_5, element_flags_anonymous_sequence_uint16_t_5); + std::string type_id_kind_anonymous_sequence_uint16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint16_field; + MemberId member_id_bounded_sequence_uint16_field = 0x0000002f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint16_field = "bounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint16_field, member_ann_builtin_bounded_sequence_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint16_field, detail_bounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_5, element_flags_anonymous_sequence_int32_t_5); + std::string type_id_kind_anonymous_sequence_int32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int32_field; + MemberId member_id_bounded_sequence_int32_field = 0x00000030; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int32_field = "bounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int32_field, member_ann_builtin_bounded_sequence_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int32_field, detail_bounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_5, element_flags_anonymous_sequence_uint32_t_5); + std::string type_id_kind_anonymous_sequence_uint32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint32_field; + MemberId member_id_bounded_sequence_uint32_field = 0x00000031; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint32_field = "bounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint32_field, member_ann_builtin_bounded_sequence_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint32_field, detail_bounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_5, element_flags_anonymous_sequence_int64_t_5); + std::string type_id_kind_anonymous_sequence_int64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int64_field; + MemberId member_id_bounded_sequence_int64_field = 0x00000032; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int64_field = "bounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int64_field, member_ann_builtin_bounded_sequence_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int64_field, detail_bounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_5, element_flags_anonymous_sequence_uint64_t_5); + std::string type_id_kind_anonymous_sequence_uint64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint64_field; + MemberId member_id_bounded_sequence_uint64_field = 0x00000033; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint64_field = "bounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint64_field, member_ann_builtin_bounded_sequence_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint64_field, detail_bounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_5 = 0; + PlainCollectionHeader header_anonymous_sequence_float_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_5, element_flags_anonymous_sequence_float_5); + std::string type_id_kind_anonymous_sequence_float_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_float_field; + MemberId member_id_bounded_sequence_float_field = 0x00000034; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_float_field = "bounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_float_field, member_ann_builtin_bounded_sequence_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_float_field, detail_bounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_5 = 0; + PlainCollectionHeader header_anonymous_sequence_double_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_5, element_flags_anonymous_sequence_double_5); + std::string type_id_kind_anonymous_sequence_double_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_double_field; + MemberId member_id_bounded_sequence_double_field = 0x00000035; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_double_field = "bounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_double_field, member_ann_builtin_bounded_sequence_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_double_field, detail_bounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_5 = 0; + PlainCollectionHeader header_anonymous_sequence_bool_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_5, element_flags_anonymous_sequence_bool_5); + std::string type_id_kind_anonymous_sequence_bool_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_bool_field; + MemberId member_id_bounded_sequence_bool_field = 0x00000036; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_bool_field = "bounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_bool_field, member_ann_builtin_bounded_sequence_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_bool_field, detail_bounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Color_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Color_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Color_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Color_5 = 0; + PlainCollectionHeader header_anonymous_sequence_Color_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Color_5, element_flags_anonymous_sequence_Color_5); + std::string type_id_kind_anonymous_sequence_Color_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Color_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum_field; + MemberId member_id_bounded_sequence_enum_field = 0x00000037; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum_field = "bounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum_field, member_ann_builtin_bounded_sequence_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum_field, detail_bounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Material_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Material_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Material_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Material_5 = 0; + PlainCollectionHeader header_anonymous_sequence_Material_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Material_5, element_flags_anonymous_sequence_Material_5); + std::string type_id_kind_anonymous_sequence_Material_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Material_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum2_field; + MemberId member_id_bounded_sequence_enum2_field = 0x00000038; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum2_field = "bounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum2_field, member_ann_builtin_bounded_sequence_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum2_field, detail_bounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_StructType_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_StructType_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_StructType_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_StructType_5 = 0; + PlainCollectionHeader header_anonymous_sequence_StructType_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_StructType_5, element_flags_anonymous_sequence_StructType_5); + std::string type_id_kind_anonymous_sequence_StructType_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_StructType_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_struct_field; + MemberId member_id_bounded_sequence_struct_field = 0x00000039; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_struct_field = "bounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_struct_field, member_ann_builtin_bounded_sequence_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_struct_field, detail_bounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_char_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_unbounded, element_flags_anonymous_sequence_char_unbounded); + std::string type_id_kind_anonymous_sequence_char_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_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_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_char_field; + MemberId member_id_unbounded_sequence_char_field = 0x0000003a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_char_field = "unbounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_char_field, member_ann_builtin_unbounded_sequence_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_char_field, detail_unbounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.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_CompleteTestType.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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint8_field; + MemberId member_id_unbounded_sequence_uint8_field = 0x0000003b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint8_field = "unbounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint8_field, member_ann_builtin_unbounded_sequence_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint8_field, detail_unbounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + std::string type_id_kind_anonymous_sequence_int16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int16_field; + MemberId member_id_unbounded_sequence_int16_field = 0x0000003c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int16_field = "unbounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int16_field, member_ann_builtin_unbounded_sequence_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int16_field, detail_unbounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_unbounded, element_flags_anonymous_sequence_uint16_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_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_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint16_field; + MemberId member_id_unbounded_sequence_uint16_field = 0x0000003d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint16_field = "unbounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint16_field, member_ann_builtin_unbounded_sequence_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint16_field, detail_unbounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_unbounded, element_flags_anonymous_sequence_int32_t_unbounded); + std::string type_id_kind_anonymous_sequence_int32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int32_field; + MemberId member_id_unbounded_sequence_int32_field = 0x0000003e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int32_field = "unbounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int32_field, member_ann_builtin_unbounded_sequence_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int32_field, detail_unbounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_unbounded, element_flags_anonymous_sequence_uint32_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_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_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint32_field; + MemberId member_id_unbounded_sequence_uint32_field = 0x0000003f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint32_field = "unbounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint32_field, member_ann_builtin_unbounded_sequence_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint32_field, detail_unbounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_unbounded, element_flags_anonymous_sequence_int64_t_unbounded); + std::string type_id_kind_anonymous_sequence_int64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_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_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int64_field; + MemberId member_id_unbounded_sequence_int64_field = 0x00000040; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int64_field = "unbounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int64_field, member_ann_builtin_unbounded_sequence_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int64_field, detail_unbounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_unbounded, element_flags_anonymous_sequence_uint64_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_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_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint64_field; + MemberId member_id_unbounded_sequence_uint64_field = 0x00000041; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint64_field = "unbounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint64_field, member_ann_builtin_unbounded_sequence_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint64_field, detail_unbounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_float_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_unbounded, element_flags_anonymous_sequence_float_unbounded); + std::string type_id_kind_anonymous_sequence_float_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_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_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_float_field; + MemberId member_id_unbounded_sequence_float_field = 0x00000042; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_float_field = "unbounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_float_field, member_ann_builtin_unbounded_sequence_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_float_field, detail_unbounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_double_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_unbounded, element_flags_anonymous_sequence_double_unbounded); + std::string type_id_kind_anonymous_sequence_double_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_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_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_double_field; + MemberId member_id_unbounded_sequence_double_field = 0x00000043; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_double_field = "unbounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_double_field, member_ann_builtin_unbounded_sequence_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_double_field, detail_unbounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_bool_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_unbounded, element_flags_anonymous_sequence_bool_unbounded); + std::string type_id_kind_anonymous_sequence_bool_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_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_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_bool_field; + MemberId member_id_unbounded_sequence_bool_field = 0x00000044; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_bool_field = "unbounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_bool_field, member_ann_builtin_unbounded_sequence_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_bool_field, detail_unbounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Color_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Color_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Color_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Color_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_Color_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Color_unbounded, element_flags_anonymous_sequence_Color_unbounded); + std::string type_id_kind_anonymous_sequence_Color_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Color_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_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_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum_field; + MemberId member_id_unbounded_sequence_enum_field = 0x00000045; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum_field = "unbounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum_field, member_ann_builtin_unbounded_sequence_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum_field, detail_unbounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Material_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Material_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Material_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Material_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_Material_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Material_unbounded, element_flags_anonymous_sequence_Material_unbounded); + std::string type_id_kind_anonymous_sequence_Material_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Material_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_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_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum2_field; + MemberId member_id_unbounded_sequence_enum2_field = 0x00000046; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum2_field = "unbounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum2_field, member_ann_builtin_unbounded_sequence_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum2_field, detail_unbounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_StructType_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_StructType_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_StructType_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_StructType_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_StructType_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_StructType_unbounded, element_flags_anonymous_sequence_StructType_unbounded); + std::string type_id_kind_anonymous_sequence_StructType_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_StructType_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_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_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_struct_field; + MemberId member_id_unbounded_sequence_struct_field = 0x00000047; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_struct_field = "unbounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_struct_field, member_ann_builtin_unbounded_sequence_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_struct_field, detail_unbounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_struct_field); + } + CompleteStructType struct_type_CompleteTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_CompleteTestType, header_CompleteTestType, member_seq_CompleteTestType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_CompleteTestType, type_name_CompleteTestType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "CompleteTestType already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "CompleteTestType", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "CompleteTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_KeyedCompleteTestType_type_identifier() +{ + { + StructTypeFlag struct_flags_KeyedCompleteTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_KeyedCompleteTestType; + TypeIdentifierPair type_ids_KeyedCompleteTestType; + QualifiedTypeName type_name_KeyedCompleteTestType = "KeyedCompleteTestType"; + eprosima::fastcdr::optional type_ann_builtin_KeyedCompleteTestType; + eprosima::fastcdr::optional ann_custom_KeyedCompleteTestType; + CompleteTypeDetail detail_KeyedCompleteTestType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_KeyedCompleteTestType, ann_custom_KeyedCompleteTestType, type_name_KeyedCompleteTestType.to_string()); + CompleteStructHeader header_KeyedCompleteTestType; + header_KeyedCompleteTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedCompleteTestType); + CompleteStructMemberSeq member_seq_KeyedCompleteTestType; + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "id Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + CommonStructMember common_id; + MemberId member_id_id = 0x00000000; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_id = TypeObjectUtils::build_common_struct_member(member_id_id, member_flags_id, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_id = TypeObjectUtils::build_common_struct_member(member_id_id, member_flags_id, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure id member TypeIdentifier inconsistent."); + return; + } + MemberName name_id = "id"; + eprosima::fastcdr::optional member_ann_builtin_id; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_id; + eprosima::fastcdr::optional unit_id; + eprosima::fastcdr::optional min_id; + eprosima::fastcdr::optional max_id; + eprosima::fastcdr::optional hash_id_id; + if (unit_id.has_value() || min_id.has_value() || max_id.has_value() || hash_id_id.has_value()) + { + member_ann_builtin_id = TypeObjectUtils::build_applied_builtin_member_annotations(unit_id, min_id, max_id, hash_id_id); + } + if (!tmp_ann_custom_id.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_id; + } + CompleteMemberDetail detail_id = TypeObjectUtils::build_complete_member_detail(name_id, member_ann_builtin_id, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_id = TypeObjectUtils::build_complete_struct_member(common_id, detail_id); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_id); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000001; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000002; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000003; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000004; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000005; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000006; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000007; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000008; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000009; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x0000000a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_string_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_struct_field; + MemberId member_id_struct_field = 0x0000000f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_field = "struct_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_struct_field = TypeObjectUtils::build_complete_member_detail(name_struct_field, member_ann_builtin_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_struct_field = TypeObjectUtils::build_complete_struct_member(common_struct_field, detail_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_char_opt_field; + MemberId member_id_char_opt_field = 0x00000010; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_opt_field = "char_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_char_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_char_opt_field; + eprosima::fastcdr::optional unit_char_opt_field; + eprosima::fastcdr::optional min_char_opt_field; + eprosima::fastcdr::optional max_char_opt_field; + eprosima::fastcdr::optional hash_id_char_opt_field; + if (unit_char_opt_field.has_value() || min_char_opt_field.has_value() || max_char_opt_field.has_value() || hash_id_char_opt_field.has_value()) + { + member_ann_builtin_char_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_char_opt_field, min_char_opt_field, max_char_opt_field, hash_id_char_opt_field); + } + if (!tmp_ann_custom_char_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_char_opt_field; + } + CompleteMemberDetail detail_char_opt_field = TypeObjectUtils::build_complete_member_detail(name_char_opt_field, member_ann_builtin_char_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_char_opt_field = TypeObjectUtils::build_complete_struct_member(common_char_opt_field, detail_char_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_char_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint8_opt_field; + MemberId member_id_uint8_opt_field = 0x00000011; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_opt_field = "uint8_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint8_opt_field; + eprosima::fastcdr::optional unit_uint8_opt_field; + eprosima::fastcdr::optional min_uint8_opt_field; + eprosima::fastcdr::optional max_uint8_opt_field; + eprosima::fastcdr::optional hash_id_uint8_opt_field; + if (unit_uint8_opt_field.has_value() || min_uint8_opt_field.has_value() || max_uint8_opt_field.has_value() || hash_id_uint8_opt_field.has_value()) + { + member_ann_builtin_uint8_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint8_opt_field, min_uint8_opt_field, max_uint8_opt_field, hash_id_uint8_opt_field); + } + if (!tmp_ann_custom_uint8_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint8_opt_field; + } + CompleteMemberDetail detail_uint8_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint8_opt_field, member_ann_builtin_uint8_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint8_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint8_opt_field, detail_uint8_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint8_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int16_opt_field; + MemberId member_id_int16_opt_field = 0x00000012; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_opt_field = "int16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int16_opt_field; + eprosima::fastcdr::optional unit_int16_opt_field; + eprosima::fastcdr::optional min_int16_opt_field; + eprosima::fastcdr::optional max_int16_opt_field; + eprosima::fastcdr::optional hash_id_int16_opt_field; + if (unit_int16_opt_field.has_value() || min_int16_opt_field.has_value() || max_int16_opt_field.has_value() || hash_id_int16_opt_field.has_value()) + { + member_ann_builtin_int16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int16_opt_field, min_int16_opt_field, max_int16_opt_field, hash_id_int16_opt_field); + } + if (!tmp_ann_custom_int16_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int16_opt_field; + } + CompleteMemberDetail detail_int16_opt_field = TypeObjectUtils::build_complete_member_detail(name_int16_opt_field, member_ann_builtin_int16_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int16_opt_field = TypeObjectUtils::build_complete_struct_member(common_int16_opt_field, detail_int16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int16_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint16_opt_field; + MemberId member_id_uint16_opt_field = 0x00000013; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_opt_field = "uint16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint16_opt_field; + eprosima::fastcdr::optional unit_uint16_opt_field; + eprosima::fastcdr::optional min_uint16_opt_field; + eprosima::fastcdr::optional max_uint16_opt_field; + eprosima::fastcdr::optional hash_id_uint16_opt_field; + if (unit_uint16_opt_field.has_value() || min_uint16_opt_field.has_value() || max_uint16_opt_field.has_value() || hash_id_uint16_opt_field.has_value()) + { + member_ann_builtin_uint16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint16_opt_field, min_uint16_opt_field, max_uint16_opt_field, hash_id_uint16_opt_field); + } + if (!tmp_ann_custom_uint16_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint16_opt_field; + } + CompleteMemberDetail detail_uint16_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint16_opt_field, member_ann_builtin_uint16_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint16_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint16_opt_field, detail_uint16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint16_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int32_opt_field; + MemberId member_id_int32_opt_field = 0x00000014; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_opt_field = "int32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int32_opt_field; + eprosima::fastcdr::optional unit_int32_opt_field; + eprosima::fastcdr::optional min_int32_opt_field; + eprosima::fastcdr::optional max_int32_opt_field; + eprosima::fastcdr::optional hash_id_int32_opt_field; + if (unit_int32_opt_field.has_value() || min_int32_opt_field.has_value() || max_int32_opt_field.has_value() || hash_id_int32_opt_field.has_value()) + { + member_ann_builtin_int32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int32_opt_field, min_int32_opt_field, max_int32_opt_field, hash_id_int32_opt_field); + } + if (!tmp_ann_custom_int32_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int32_opt_field; + } + CompleteMemberDetail detail_int32_opt_field = TypeObjectUtils::build_complete_member_detail(name_int32_opt_field, member_ann_builtin_int32_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int32_opt_field = TypeObjectUtils::build_complete_struct_member(common_int32_opt_field, detail_int32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int32_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint32_opt_field; + MemberId member_id_uint32_opt_field = 0x00000015; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_opt_field = "uint32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint32_opt_field; + eprosima::fastcdr::optional unit_uint32_opt_field; + eprosima::fastcdr::optional min_uint32_opt_field; + eprosima::fastcdr::optional max_uint32_opt_field; + eprosima::fastcdr::optional hash_id_uint32_opt_field; + if (unit_uint32_opt_field.has_value() || min_uint32_opt_field.has_value() || max_uint32_opt_field.has_value() || hash_id_uint32_opt_field.has_value()) + { + member_ann_builtin_uint32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint32_opt_field, min_uint32_opt_field, max_uint32_opt_field, hash_id_uint32_opt_field); + } + if (!tmp_ann_custom_uint32_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint32_opt_field; + } + CompleteMemberDetail detail_uint32_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint32_opt_field, member_ann_builtin_uint32_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint32_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint32_opt_field, detail_uint32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint32_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int64_opt_field; + MemberId member_id_int64_opt_field = 0x00000016; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_opt_field = "int64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int64_opt_field; + eprosima::fastcdr::optional unit_int64_opt_field; + eprosima::fastcdr::optional min_int64_opt_field; + eprosima::fastcdr::optional max_int64_opt_field; + eprosima::fastcdr::optional hash_id_int64_opt_field; + if (unit_int64_opt_field.has_value() || min_int64_opt_field.has_value() || max_int64_opt_field.has_value() || hash_id_int64_opt_field.has_value()) + { + member_ann_builtin_int64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int64_opt_field, min_int64_opt_field, max_int64_opt_field, hash_id_int64_opt_field); + } + if (!tmp_ann_custom_int64_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int64_opt_field; + } + CompleteMemberDetail detail_int64_opt_field = TypeObjectUtils::build_complete_member_detail(name_int64_opt_field, member_ann_builtin_int64_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int64_opt_field = TypeObjectUtils::build_complete_struct_member(common_int64_opt_field, detail_int64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int64_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint64_opt_field; + MemberId member_id_uint64_opt_field = 0x00000017; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_opt_field = "uint64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint64_opt_field; + eprosima::fastcdr::optional unit_uint64_opt_field; + eprosima::fastcdr::optional min_uint64_opt_field; + eprosima::fastcdr::optional max_uint64_opt_field; + eprosima::fastcdr::optional hash_id_uint64_opt_field; + if (unit_uint64_opt_field.has_value() || min_uint64_opt_field.has_value() || max_uint64_opt_field.has_value() || hash_id_uint64_opt_field.has_value()) + { + member_ann_builtin_uint64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint64_opt_field, min_uint64_opt_field, max_uint64_opt_field, hash_id_uint64_opt_field); + } + if (!tmp_ann_custom_uint64_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint64_opt_field; + } + CompleteMemberDetail detail_uint64_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint64_opt_field, member_ann_builtin_uint64_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint64_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint64_opt_field, detail_uint64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint64_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_float_opt_field; + MemberId member_id_float_opt_field = 0x00000018; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_opt_field = "float_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_float_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_float_opt_field; + eprosima::fastcdr::optional unit_float_opt_field; + eprosima::fastcdr::optional min_float_opt_field; + eprosima::fastcdr::optional max_float_opt_field; + eprosima::fastcdr::optional hash_id_float_opt_field; + if (unit_float_opt_field.has_value() || min_float_opt_field.has_value() || max_float_opt_field.has_value() || hash_id_float_opt_field.has_value()) + { + member_ann_builtin_float_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_float_opt_field, min_float_opt_field, max_float_opt_field, hash_id_float_opt_field); + } + if (!tmp_ann_custom_float_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_float_opt_field; + } + CompleteMemberDetail detail_float_opt_field = TypeObjectUtils::build_complete_member_detail(name_float_opt_field, member_ann_builtin_float_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_float_opt_field = TypeObjectUtils::build_complete_struct_member(common_float_opt_field, detail_float_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_float_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_double_opt_field; + MemberId member_id_double_opt_field = 0x00000019; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_opt_field = "double_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_double_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_double_opt_field; + eprosima::fastcdr::optional unit_double_opt_field; + eprosima::fastcdr::optional min_double_opt_field; + eprosima::fastcdr::optional max_double_opt_field; + eprosima::fastcdr::optional hash_id_double_opt_field; + if (unit_double_opt_field.has_value() || min_double_opt_field.has_value() || max_double_opt_field.has_value() || hash_id_double_opt_field.has_value()) + { + member_ann_builtin_double_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_double_opt_field, min_double_opt_field, max_double_opt_field, hash_id_double_opt_field); + } + if (!tmp_ann_custom_double_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_double_opt_field; + } + CompleteMemberDetail detail_double_opt_field = TypeObjectUtils::build_complete_member_detail(name_double_opt_field, member_ann_builtin_double_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_double_opt_field = TypeObjectUtils::build_complete_struct_member(common_double_opt_field, detail_double_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_double_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_bool_opt_field; + MemberId member_id_bool_opt_field = 0x0000001a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_opt_field = "bool_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_bool_opt_field; + eprosima::fastcdr::optional unit_bool_opt_field; + eprosima::fastcdr::optional min_bool_opt_field; + eprosima::fastcdr::optional max_bool_opt_field; + eprosima::fastcdr::optional hash_id_bool_opt_field; + if (unit_bool_opt_field.has_value() || min_bool_opt_field.has_value() || max_bool_opt_field.has_value() || hash_id_bool_opt_field.has_value()) + { + member_ann_builtin_bool_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_bool_opt_field, min_bool_opt_field, max_bool_opt_field, hash_id_bool_opt_field); + } + if (!tmp_ann_custom_bool_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_bool_opt_field; + } + CompleteMemberDetail detail_bool_opt_field = TypeObjectUtils::build_complete_member_detail(name_bool_opt_field, member_ann_builtin_bool_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bool_opt_field = TypeObjectUtils::build_complete_struct_member(common_bool_opt_field, detail_bool_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bool_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_string_opt_field; + MemberId member_id_string_opt_field = 0x0000001b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_opt_field = "string_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_string_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_string_opt_field; + eprosima::fastcdr::optional unit_string_opt_field; + eprosima::fastcdr::optional min_string_opt_field; + eprosima::fastcdr::optional max_string_opt_field; + eprosima::fastcdr::optional hash_id_string_opt_field; + if (unit_string_opt_field.has_value() || min_string_opt_field.has_value() || max_string_opt_field.has_value() || hash_id_string_opt_field.has_value()) + { + member_ann_builtin_string_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_string_opt_field, min_string_opt_field, max_string_opt_field, hash_id_string_opt_field); + } + if (!tmp_ann_custom_string_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_string_opt_field; + } + CompleteMemberDetail detail_string_opt_field = TypeObjectUtils::build_complete_member_detail(name_string_opt_field, member_ann_builtin_string_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_string_opt_field = TypeObjectUtils::build_complete_struct_member(common_string_opt_field, detail_string_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_string_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum_opt_field; + MemberId member_id_enum_opt_field = 0x0000001c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_opt_field = "enum_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum_opt_field; + eprosima::fastcdr::optional unit_enum_opt_field; + eprosima::fastcdr::optional min_enum_opt_field; + eprosima::fastcdr::optional max_enum_opt_field; + eprosima::fastcdr::optional hash_id_enum_opt_field; + if (unit_enum_opt_field.has_value() || min_enum_opt_field.has_value() || max_enum_opt_field.has_value() || hash_id_enum_opt_field.has_value()) + { + member_ann_builtin_enum_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum_opt_field, min_enum_opt_field, max_enum_opt_field, hash_id_enum_opt_field); + } + if (!tmp_ann_custom_enum_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_enum_opt_field; + } + CompleteMemberDetail detail_enum_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum_opt_field, member_ann_builtin_enum_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum_opt_field, detail_enum_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum2_opt_field; + MemberId member_id_enum2_opt_field = 0x0000001d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_opt_field = "enum2_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum2_opt_field; + eprosima::fastcdr::optional unit_enum2_opt_field; + eprosima::fastcdr::optional min_enum2_opt_field; + eprosima::fastcdr::optional max_enum2_opt_field; + eprosima::fastcdr::optional hash_id_enum2_opt_field; + if (unit_enum2_opt_field.has_value() || min_enum2_opt_field.has_value() || max_enum2_opt_field.has_value() || hash_id_enum2_opt_field.has_value()) + { + member_ann_builtin_enum2_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum2_opt_field, min_enum2_opt_field, max_enum2_opt_field, hash_id_enum2_opt_field); + } + if (!tmp_ann_custom_enum2_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_enum2_opt_field; + } + CompleteMemberDetail detail_enum2_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum2_opt_field, member_ann_builtin_enum2_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum2_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum2_opt_field, detail_enum2_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum2_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_struct_opt_field; + MemberId member_id_struct_opt_field = 0x0000001e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_opt_field = "struct_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_struct_opt_field; + eprosima::fastcdr::optional unit_struct_opt_field; + eprosima::fastcdr::optional min_struct_opt_field; + eprosima::fastcdr::optional max_struct_opt_field; + eprosima::fastcdr::optional hash_id_struct_opt_field; + if (unit_struct_opt_field.has_value() || min_struct_opt_field.has_value() || max_struct_opt_field.has_value() || hash_id_struct_opt_field.has_value()) + { + member_ann_builtin_struct_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_struct_opt_field, min_struct_opt_field, max_struct_opt_field, hash_id_struct_opt_field); + } + if (!tmp_ann_custom_struct_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_struct_opt_field; + } + CompleteMemberDetail detail_struct_opt_field = TypeObjectUtils::build_complete_member_detail(name_struct_opt_field, member_ann_builtin_struct_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_struct_opt_field = TypeObjectUtils::build_complete_struct_member(common_struct_opt_field, detail_struct_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_struct_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_char_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_3 = 0; + PlainCollectionHeader header_anonymous_array_char_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_3, element_flags_anonymous_array_char_3); + std::string type_id_kind_anonymous_array_char_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_char_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_char_field; + MemberId member_id_array_char_field = 0x0000001f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_char_field = "array_char_field"; + eprosima::fastcdr::optional member_ann_builtin_array_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_char_field = TypeObjectUtils::build_complete_member_detail(name_array_char_field, member_ann_builtin_array_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_char_field = TypeObjectUtils::build_complete_struct_member(common_array_char_field, detail_array_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint8_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint8_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint8_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint8_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_3, element_flags_anonymous_array_uint8_t_3); + std::string type_id_kind_anonymous_array_uint8_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint8_field; + MemberId member_id_array_uint8_field = 0x00000020; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint8_field = "array_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint8_field = TypeObjectUtils::build_complete_member_detail(name_array_uint8_field, member_ann_builtin_array_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint8_field = TypeObjectUtils::build_complete_struct_member(common_array_uint8_field, detail_array_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_3, element_flags_anonymous_array_int16_t_3); + std::string type_id_kind_anonymous_array_int16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int16_field; + MemberId member_id_array_int16_field = 0x00000021; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int16_field = "array_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int16_field = TypeObjectUtils::build_complete_member_detail(name_array_int16_field, member_ann_builtin_array_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int16_field = TypeObjectUtils::build_complete_struct_member(common_array_int16_field, detail_array_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint16_t_3, element_flags_anonymous_array_uint16_t_3); + std::string type_id_kind_anonymous_array_uint16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint16_field; + MemberId member_id_array_uint16_field = 0x00000022; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint16_field = "array_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint16_field = TypeObjectUtils::build_complete_member_detail(name_array_uint16_field, member_ann_builtin_array_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint16_field = TypeObjectUtils::build_complete_struct_member(common_array_uint16_field, detail_array_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int32_t_3, element_flags_anonymous_array_int32_t_3); + std::string type_id_kind_anonymous_array_int32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int32_field; + MemberId member_id_array_int32_field = 0x00000023; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int32_field = "array_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int32_field = TypeObjectUtils::build_complete_member_detail(name_array_int32_field, member_ann_builtin_array_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int32_field = TypeObjectUtils::build_complete_struct_member(common_array_int32_field, detail_array_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint32_t_3, element_flags_anonymous_array_uint32_t_3); + std::string type_id_kind_anonymous_array_uint32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint32_field; + MemberId member_id_array_uint32_field = 0x00000024; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint32_field = "array_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint32_field = TypeObjectUtils::build_complete_member_detail(name_array_uint32_field, member_ann_builtin_array_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint32_field = TypeObjectUtils::build_complete_struct_member(common_array_uint32_field, detail_array_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int64_t_3, element_flags_anonymous_array_int64_t_3); + std::string type_id_kind_anonymous_array_int64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int64_field; + MemberId member_id_array_int64_field = 0x00000025; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int64_field = "array_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int64_field = TypeObjectUtils::build_complete_member_detail(name_array_int64_field, member_ann_builtin_array_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int64_field = TypeObjectUtils::build_complete_struct_member(common_array_int64_field, detail_array_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint64_t_3, element_flags_anonymous_array_uint64_t_3); + std::string type_id_kind_anonymous_array_uint64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint64_field; + MemberId member_id_array_uint64_field = 0x00000026; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint64_field = "array_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint64_field = TypeObjectUtils::build_complete_member_detail(name_array_uint64_field, member_ann_builtin_array_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint64_field = TypeObjectUtils::build_complete_struct_member(common_array_uint64_field, detail_array_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_float_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_float_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_float_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_float_3 = 0; + PlainCollectionHeader header_anonymous_array_float_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_float_3, element_flags_anonymous_array_float_3); + std::string type_id_kind_anonymous_array_float_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_float_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_float_field; + MemberId member_id_array_float_field = 0x00000027; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_float_field = "array_float_field"; + eprosima::fastcdr::optional member_ann_builtin_array_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_float_field = TypeObjectUtils::build_complete_member_detail(name_array_float_field, member_ann_builtin_array_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_float_field = TypeObjectUtils::build_complete_struct_member(common_array_float_field, detail_array_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_double_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_double_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_double_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_double_3 = 0; + PlainCollectionHeader header_anonymous_array_double_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_double_3, element_flags_anonymous_array_double_3); + std::string type_id_kind_anonymous_array_double_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_double_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_double_field; + MemberId member_id_array_double_field = 0x00000028; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_double_field = "array_double_field"; + eprosima::fastcdr::optional member_ann_builtin_array_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_double_field = TypeObjectUtils::build_complete_member_detail(name_array_double_field, member_ann_builtin_array_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_double_field = TypeObjectUtils::build_complete_struct_member(common_array_double_field, detail_array_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_bool_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_bool_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_bool_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_bool_3 = 0; + PlainCollectionHeader header_anonymous_array_bool_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_bool_3, element_flags_anonymous_array_bool_3); + std::string type_id_kind_anonymous_array_bool_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_bool_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_bool_field; + MemberId member_id_array_bool_field = 0x00000029; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_bool_field = "array_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_array_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_bool_field = TypeObjectUtils::build_complete_member_detail(name_array_bool_field, member_ann_builtin_array_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_bool_field = TypeObjectUtils::build_complete_struct_member(common_array_bool_field, detail_array_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Color_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_Color_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Color_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_Color_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_Color_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_Color_3 = 0; + PlainCollectionHeader header_anonymous_array_Color_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_Color_3, element_flags_anonymous_array_Color_3); + std::string type_id_kind_anonymous_array_Color_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_Color_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Color_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Color_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum_field; + MemberId member_id_array_enum_field = 0x0000002a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum_field = "array_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_enum_field = TypeObjectUtils::build_complete_member_detail(name_array_enum_field, member_ann_builtin_array_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_enum_field = TypeObjectUtils::build_complete_struct_member(common_array_enum_field, detail_array_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Material_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_Material_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_Material_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_Material_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_Material_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_Material_3 = 0; + PlainCollectionHeader header_anonymous_array_Material_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_Material_3, element_flags_anonymous_array_Material_3); + std::string type_id_kind_anonymous_array_Material_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_Material_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_Material_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_Material_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum2_field; + MemberId member_id_array_enum2_field = 0x0000002b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum2_field = "array_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_enum2_field = TypeObjectUtils::build_complete_member_detail(name_array_enum2_field, member_ann_builtin_array_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_enum2_field = TypeObjectUtils::build_complete_struct_member(common_array_enum2_field, detail_array_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_StructType_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_array_StructType_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_StructType_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_StructType_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_StructType_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_StructType_3 = 0; + PlainCollectionHeader header_anonymous_array_StructType_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_StructType_3, element_flags_anonymous_array_StructType_3); + std::string type_id_kind_anonymous_array_StructType_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_StructType_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_StructType_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_StructType_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_struct_field; + MemberId member_id_array_struct_field = 0x0000002c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_struct_field = "array_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_array_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_struct_field = TypeObjectUtils::build_complete_member_detail(name_array_struct_field, member_ann_builtin_array_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_struct_field = TypeObjectUtils::build_complete_struct_member(common_array_struct_field, detail_array_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_5 = 0; + PlainCollectionHeader header_anonymous_sequence_char_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_5, element_flags_anonymous_sequence_char_5); + std::string type_id_kind_anonymous_sequence_char_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_char_field; + MemberId member_id_bounded_sequence_char_field = 0x0000002d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_char_field = "bounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_char_field, member_ann_builtin_bounded_sequence_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_char_field, detail_bounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint8_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint8_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint8_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_5, element_flags_anonymous_sequence_uint8_t_5); + std::string type_id_kind_anonymous_sequence_uint8_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint8_field; + MemberId member_id_bounded_sequence_uint8_field = 0x0000002e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint8_field = "bounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint8_field, member_ann_builtin_bounded_sequence_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint8_field, detail_bounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_5, element_flags_anonymous_sequence_int16_t_5); + std::string type_id_kind_anonymous_sequence_int16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int16_field; + MemberId member_id_bounded_sequence_int16_field = 0x0000002f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int16_field = "bounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int16_field, member_ann_builtin_bounded_sequence_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int16_field, detail_bounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_5, element_flags_anonymous_sequence_uint16_t_5); + std::string type_id_kind_anonymous_sequence_uint16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint16_field; + MemberId member_id_bounded_sequence_uint16_field = 0x00000030; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint16_field = "bounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint16_field, member_ann_builtin_bounded_sequence_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint16_field, detail_bounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_5, element_flags_anonymous_sequence_int32_t_5); + std::string type_id_kind_anonymous_sequence_int32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int32_field; + MemberId member_id_bounded_sequence_int32_field = 0x00000031; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int32_field = "bounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int32_field, member_ann_builtin_bounded_sequence_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int32_field, detail_bounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_5, element_flags_anonymous_sequence_uint32_t_5); + std::string type_id_kind_anonymous_sequence_uint32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint32_field; + MemberId member_id_bounded_sequence_uint32_field = 0x00000032; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint32_field = "bounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint32_field, member_ann_builtin_bounded_sequence_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint32_field, detail_bounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_5, element_flags_anonymous_sequence_int64_t_5); + std::string type_id_kind_anonymous_sequence_int64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int64_field; + MemberId member_id_bounded_sequence_int64_field = 0x00000033; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int64_field = "bounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int64_field, member_ann_builtin_bounded_sequence_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int64_field, detail_bounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_5, element_flags_anonymous_sequence_uint64_t_5); + std::string type_id_kind_anonymous_sequence_uint64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint64_field; + MemberId member_id_bounded_sequence_uint64_field = 0x00000034; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint64_field = "bounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint64_field, member_ann_builtin_bounded_sequence_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint64_field, detail_bounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_5 = 0; + PlainCollectionHeader header_anonymous_sequence_float_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_5, element_flags_anonymous_sequence_float_5); + std::string type_id_kind_anonymous_sequence_float_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_float_field; + MemberId member_id_bounded_sequence_float_field = 0x00000035; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_float_field = "bounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_float_field, member_ann_builtin_bounded_sequence_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_float_field, detail_bounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_5 = 0; + PlainCollectionHeader header_anonymous_sequence_double_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_5, element_flags_anonymous_sequence_double_5); + std::string type_id_kind_anonymous_sequence_double_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_double_field; + MemberId member_id_bounded_sequence_double_field = 0x00000036; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_double_field = "bounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_double_field, member_ann_builtin_bounded_sequence_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_double_field, detail_bounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_5 = 0; + PlainCollectionHeader header_anonymous_sequence_bool_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_5, element_flags_anonymous_sequence_bool_5); + std::string type_id_kind_anonymous_sequence_bool_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_bool_field; + MemberId member_id_bounded_sequence_bool_field = 0x00000037; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_bool_field = "bounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_bool_field, member_ann_builtin_bounded_sequence_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_bool_field, detail_bounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Color_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Color_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Color_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Color_5 = 0; + PlainCollectionHeader header_anonymous_sequence_Color_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Color_5, element_flags_anonymous_sequence_Color_5); + std::string type_id_kind_anonymous_sequence_Color_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Color_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum_field; + MemberId member_id_bounded_sequence_enum_field = 0x00000038; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum_field = "bounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum_field, member_ann_builtin_bounded_sequence_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum_field, detail_bounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Material_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Material_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Material_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Material_5 = 0; + PlainCollectionHeader header_anonymous_sequence_Material_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Material_5, element_flags_anonymous_sequence_Material_5); + std::string type_id_kind_anonymous_sequence_Material_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Material_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum2_field; + MemberId member_id_bounded_sequence_enum2_field = 0x00000039; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum2_field = "bounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum2_field, member_ann_builtin_bounded_sequence_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum2_field, detail_bounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_StructType_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_StructType_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_StructType_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_StructType_5 = 0; + PlainCollectionHeader header_anonymous_sequence_StructType_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_StructType_5, element_flags_anonymous_sequence_StructType_5); + std::string type_id_kind_anonymous_sequence_StructType_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_StructType_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_struct_field; + MemberId member_id_bounded_sequence_struct_field = 0x0000003a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_struct_field = "bounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_struct_field, member_ann_builtin_bounded_sequence_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_struct_field, detail_bounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_char_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_unbounded, element_flags_anonymous_sequence_char_unbounded); + std::string type_id_kind_anonymous_sequence_char_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_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_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_char_field; + MemberId member_id_unbounded_sequence_char_field = 0x0000003b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_char_field = "unbounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_char_field, member_ann_builtin_unbounded_sequence_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_char_field, detail_unbounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.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_KeyedCompleteTestType.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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint8_field; + MemberId member_id_unbounded_sequence_uint8_field = 0x0000003c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint8_field = "unbounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint8_field, member_ann_builtin_unbounded_sequence_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint8_field, detail_unbounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + std::string type_id_kind_anonymous_sequence_int16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int16_field; + MemberId member_id_unbounded_sequence_int16_field = 0x0000003d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int16_field = "unbounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int16_field, member_ann_builtin_unbounded_sequence_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int16_field, detail_unbounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_unbounded, element_flags_anonymous_sequence_uint16_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_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_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint16_field; + MemberId member_id_unbounded_sequence_uint16_field = 0x0000003e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint16_field = "unbounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint16_field, member_ann_builtin_unbounded_sequence_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint16_field, detail_unbounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_unbounded, element_flags_anonymous_sequence_int32_t_unbounded); + std::string type_id_kind_anonymous_sequence_int32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int32_field; + MemberId member_id_unbounded_sequence_int32_field = 0x0000003f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int32_field = "unbounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int32_field, member_ann_builtin_unbounded_sequence_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int32_field, detail_unbounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_unbounded, element_flags_anonymous_sequence_uint32_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_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_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint32_field; + MemberId member_id_unbounded_sequence_uint32_field = 0x00000040; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint32_field = "unbounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint32_field, member_ann_builtin_unbounded_sequence_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint32_field, detail_unbounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_unbounded, element_flags_anonymous_sequence_int64_t_unbounded); + std::string type_id_kind_anonymous_sequence_int64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_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_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int64_field; + MemberId member_id_unbounded_sequence_int64_field = 0x00000041; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int64_field = "unbounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int64_field, member_ann_builtin_unbounded_sequence_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int64_field, detail_unbounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_unbounded, element_flags_anonymous_sequence_uint64_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_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_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint64_field; + MemberId member_id_unbounded_sequence_uint64_field = 0x00000042; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint64_field = "unbounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint64_field, member_ann_builtin_unbounded_sequence_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint64_field, detail_unbounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_float_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_unbounded, element_flags_anonymous_sequence_float_unbounded); + std::string type_id_kind_anonymous_sequence_float_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_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_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_float_field; + MemberId member_id_unbounded_sequence_float_field = 0x00000043; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_float_field = "unbounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_float_field, member_ann_builtin_unbounded_sequence_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_float_field, detail_unbounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_double_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_unbounded, element_flags_anonymous_sequence_double_unbounded); + std::string type_id_kind_anonymous_sequence_double_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_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_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_double_field; + MemberId member_id_unbounded_sequence_double_field = 0x00000044; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_double_field = "unbounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_double_field, member_ann_builtin_unbounded_sequence_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_double_field, detail_unbounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_bool_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_unbounded, element_flags_anonymous_sequence_bool_unbounded); + std::string type_id_kind_anonymous_sequence_bool_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_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_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_bool_field; + MemberId member_id_unbounded_sequence_bool_field = 0x00000045; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_bool_field = "unbounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_bool_field, member_ann_builtin_unbounded_sequence_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_bool_field, detail_unbounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Color_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Color_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Color_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Color_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Color_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_Color_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Color_unbounded, element_flags_anonymous_sequence_Color_unbounded); + std::string type_id_kind_anonymous_sequence_Color_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Color_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_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_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Color_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Color_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum_field; + MemberId member_id_unbounded_sequence_enum_field = 0x00000046; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum_field = "unbounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum_field, member_ann_builtin_unbounded_sequence_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum_field, detail_unbounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_Material_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_Material_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_Material_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_Material_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_Material_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_Material_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_Material_unbounded, element_flags_anonymous_sequence_Material_unbounded); + std::string type_id_kind_anonymous_sequence_Material_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_Material_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_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_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_Material_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_Material_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum2_field; + MemberId member_id_unbounded_sequence_enum2_field = 0x00000047; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum2_field = "unbounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum2_field, member_ann_builtin_unbounded_sequence_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum2_field, detail_unbounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_included_module_struct = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_included_module_struct; + MemberId member_id_included_module_struct = 0x0000000e; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_included_module_struct = TypeObjectUtils::build_common_struct_member(member_id_included_module_struct, member_flags_included_module_struct, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure included_module_struct member TypeIdentifier inconsistent."); + return; + } + MemberName name_included_module_struct = "included_module_struct"; + eprosima::fastcdr::optional member_ann_builtin_included_module_struct; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_included_module_struct = TypeObjectUtils::build_complete_member_detail(name_included_module_struct, member_ann_builtin_included_module_struct, ann_custom_StructType); + CompleteStructMember member_included_module_struct = TypeObjectUtils::build_complete_struct_member(common_included_module_struct, detail_included_module_struct); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_included_module_struct); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_StructType_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_StructType_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_StructType_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_StructType_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_StructType_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_StructType_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_StructType_unbounded, element_flags_anonymous_sequence_StructType_unbounded); + std::string type_id_kind_anonymous_sequence_StructType_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_StructType_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_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_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_StructType_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_StructType_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_struct_field; + MemberId member_id_unbounded_sequence_struct_field = 0x00000048; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_struct_field = "unbounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_struct_field, member_ann_builtin_unbounded_sequence_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_struct_field, detail_unbounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_struct_field); + } + CompleteStructType struct_type_KeyedCompleteTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedCompleteTestType, header_KeyedCompleteTestType, member_seq_KeyedCompleteTestType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedCompleteTestType, type_name_KeyedCompleteTestType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "KeyedCompleteTestType already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "KeyedCompleteTestType", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "KeyedCompleteTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/fastdds_python/test/types/test_completeTypeObjectSupport.hpp b/fastdds_python/test/types/test_completeTypeObjectSupport.hpp new file mode 100644 index 00000000..079f0092 --- /dev/null +++ b/fastdds_python/test/types/test_completeTypeObjectSupport.hpp @@ -0,0 +1,69 @@ +// 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 test_completeTypeObjectSupport.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_TEST_COMPLETE_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_TEST_COMPLETE_TYPE_OBJECT_SUPPORT_HPP_ + +#include "test_included_modulesTypeObjectSupport.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_test_complete_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register StructType 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. + */ +eProsima_user_DllExport void register_StructType_type_identifier(); +/** + * @brief Register CompleteTestType 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. + */ +eProsima_user_DllExport void register_CompleteTestType_type_identifier(); +/** + * @brief Register KeyedCompleteTestType 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. + */ +eProsima_user_DllExport void register_KeyedCompleteTestType_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_TEST_COMPLETE_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/fastdds_python/test/types/test_completev1.cxx b/fastdds_python/test/types/test_completev1.cxx deleted file mode 100644 index 2bd17df1..00000000 --- a/fastdds_python/test/types/test_completev1.cxx +++ /dev/null @@ -1,10440 +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 test_complete.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 "test_complete.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 CompleteTestType_max_cdr_typesize 78608ULL; - -#define StructType_max_cdr_typesize 656ULL; -#define eprosima_test2_StructType2_max_cdr_typesize 328ULL; - - -#define KeyedCompleteTestType_max_cdr_typesize 78608ULL; - - - - - -StructType::StructType() -{ - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // Color m_enum_field - m_enum_field = ::RED; - // Material m_enum2_field - m_enum2_field = ::WOOD; - // eprosima::test2::StructType2 m_included_module_struct - - -} - -StructType::~StructType() -{ -} - -StructType::StructType( - const StructType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_included_module_struct = x.m_included_module_struct; - -} - -StructType::StructType( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_included_module_struct = std::move(x.m_included_module_struct); - -} - -StructType& StructType::operator =( - const StructType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_included_module_struct = x.m_included_module_struct; - - return *this; -} - -StructType& StructType::operator =( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_included_module_struct = std::move(x.m_included_module_struct); - - return *this; -} - -bool StructType::operator ==( - const StructType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_included_module_struct == x.m_included_module_struct); -} - -bool StructType::operator !=( - const StructType& x) const -{ - return !(*this == x); -} - -size_t StructType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return StructType_max_cdr_typesize; -} - -size_t StructType::getCdrSerializedSize( - const StructType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += eprosima::test2::StructType2::getCdrSerializedSize(data.included_module_struct(), current_alignment); - - - return current_alignment - initial_alignment; -} - - -void StructType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - - scdr << m_included_module_struct; - -} - -void StructType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (Material)enum_value; - } - - - - dcdr >> m_included_module_struct; - - -} - - -bool StructType::isKeyDefined() -{ - return false; -} - -void StructType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color StructType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& StructType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material StructType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& StructType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member included_module_struct - * @param _included_module_struct New value to be copied in member included_module_struct - */ -void StructType::included_module_struct( - const eprosima::test2::StructType2& _included_module_struct) -{ - m_included_module_struct = _included_module_struct; -} - -/*! - * @brief This function moves the value in member included_module_struct - * @param _included_module_struct New value to be moved in member included_module_struct - */ -void StructType::included_module_struct( - eprosima::test2::StructType2&& _included_module_struct) -{ - m_included_module_struct = std::move(_included_module_struct); -} - -/*! - * @brief This function returns a constant reference to member included_module_struct - * @return Constant reference to member included_module_struct - */ -const eprosima::test2::StructType2& StructType::included_module_struct() const -{ - return m_included_module_struct; -} - -/*! - * @brief This function returns a reference to member included_module_struct - * @return Reference to member included_module_struct - */ -eprosima::test2::StructType2& StructType::included_module_struct() -{ - return m_included_module_struct; -} - - - - - - - - - -CompleteTestType::CompleteTestType() -{ - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // Color m_enum_field - m_enum_field = ::RED; - // Material m_enum2_field - m_enum2_field = ::WOOD; - // StructType m_struct_field - - // char m_char_opt_field - m_char_opt_field = 0; - // octet m_uint8_opt_field - m_uint8_opt_field = 0; - // short m_int16_opt_field - m_int16_opt_field = 0; - // unsigned short m_uint16_opt_field - m_uint16_opt_field = 0; - // long m_int32_opt_field - m_int32_opt_field = 0; - // unsigned long m_uint32_opt_field - m_uint32_opt_field = 0; - // long long m_int64_opt_field - m_int64_opt_field = 0; - // unsigned long long m_uint64_opt_field - m_uint64_opt_field = 0; - // float m_float_opt_field - m_float_opt_field = 0.0; - // double m_double_opt_field - m_double_opt_field = 0.0; - // boolean m_bool_opt_field - m_bool_opt_field = false; - // /type_d() m_string_opt_field - - // Color m_enum_opt_field - m_enum_opt_field = ::RED; - // Material m_enum2_opt_field - m_enum2_opt_field = ::WOOD; - // StructType m_struct_opt_field - - // char m_array_char_field - memset(&m_array_char_field, 0, ((max_array_size)) * 1); - // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); - // short m_array_int16_field - memset(&m_array_int16_field, 0, ((max_array_size)) * 2); - // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); - // long m_array_int32_field - memset(&m_array_int32_field, 0, ((max_array_size)) * 4); - // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); - // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((max_array_size)) * 8); - // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); - // float m_array_float_field - memset(&m_array_float_field, 0, ((max_array_size)) * 4); - // double m_array_double_field - memset(&m_array_double_field, 0, ((max_array_size)) * 8); - // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((max_array_size)) * 1); - // Color m_array_enum_field - memset(&m_array_enum_field, 0, ((max_array_size)) * 4); - // Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); - // StructType m_array_struct_field - - // sequence m_bounded_sequence_char_field - - // sequence m_bounded_sequence_uint8_field - - // sequence m_bounded_sequence_int16_field - - // sequence m_bounded_sequence_uint16_field - - // sequence m_bounded_sequence_int32_field - - // sequence m_bounded_sequence_uint32_field - - // sequence m_bounded_sequence_int64_field - - // sequence m_bounded_sequence_uint64_field - - // sequence m_bounded_sequence_float_field - - // sequence m_bounded_sequence_double_field - - // sequence m_bounded_sequence_bool_field - - // sequence m_bounded_sequence_enum_field - - // sequence m_bounded_sequence_enum2_field - - // sequence m_bounded_sequence_struct_field - - // sequence m_unbounded_sequence_char_field - - // sequence m_unbounded_sequence_uint8_field - - // sequence m_unbounded_sequence_int16_field - - // sequence m_unbounded_sequence_uint16_field - - // sequence m_unbounded_sequence_int32_field - - // sequence m_unbounded_sequence_uint32_field - - // sequence m_unbounded_sequence_int64_field - - // sequence m_unbounded_sequence_uint64_field - - // sequence m_unbounded_sequence_float_field - - // sequence m_unbounded_sequence_double_field - - // sequence m_unbounded_sequence_bool_field - - // sequence m_unbounded_sequence_enum_field - - // sequence m_unbounded_sequence_enum2_field - - // sequence m_unbounded_sequence_struct_field - - -} - -CompleteTestType::~CompleteTestType() -{ -} - -CompleteTestType::CompleteTestType( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - -} - -CompleteTestType::CompleteTestType( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - -} - -CompleteTestType& CompleteTestType::operator =( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - - return *this; -} - -CompleteTestType& CompleteTestType::operator =( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - - return *this; -} - -bool CompleteTestType::operator ==( - const CompleteTestType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool CompleteTestType::operator !=( - const CompleteTestType& x) const -{ - return !(*this == x); -} - -size_t CompleteTestType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return CompleteTestType_max_cdr_typesize; -} - -size_t CompleteTestType::getCdrSerializedSize( - const CompleteTestType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += StructType::getCdrSerializedSize(data.struct_field(), current_alignment); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_opt_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - - for(size_t a = 0; a < data.array_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.array_struct_field().at(a), current_alignment); - - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_char_field().size() > 0) - { - current_alignment += (data.bounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_float_field().size() > 0) - { - current_alignment += (data.bounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_double_field().size() > 0) - { - current_alignment += (data.bounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.bounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.bounded_sequence_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.bounded_sequence_struct_field().at(a), current_alignment); - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_char_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_float_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_double_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.unbounded_sequence_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.unbounded_sequence_struct_field().at(a), current_alignment); - } - - - - return current_alignment - initial_alignment; -} - - -void CompleteTestType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - - scdr << m_struct_field; - - scdr << m_char_opt_field; - - scdr << m_uint8_opt_field; - - scdr << m_int16_opt_field; - - scdr << m_uint16_opt_field; - - scdr << m_int32_opt_field; - - scdr << m_uint32_opt_field; - - scdr << m_int64_opt_field; - - scdr << m_uint64_opt_field; - - scdr << m_float_opt_field; - - scdr << m_double_opt_field; - - scdr << m_bool_opt_field; - - scdr << m_string_opt_field.c_str(); - - scdr << (uint32_t)m_enum_opt_field; - - scdr << (uint32_t)m_enum2_opt_field; - - scdr << m_struct_opt_field; - - scdr << m_array_char_field; - - - scdr << m_array_uint8_field; - - - scdr << m_array_int16_field; - - - scdr << m_array_uint16_field; - - - scdr << m_array_int32_field; - - - scdr << m_array_uint32_field; - - - scdr << m_array_int64_field; - - - scdr << m_array_uint64_field; - - - scdr << m_array_float_field; - - - scdr << m_array_double_field; - - - scdr << m_array_bool_field; - - - scdr.serializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - scdr.serializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - scdr << m_array_struct_field; - - - scdr << m_bounded_sequence_char_field; - - - scdr << m_bounded_sequence_uint8_field; - - - scdr << m_bounded_sequence_int16_field; - - - scdr << m_bounded_sequence_uint16_field; - - - scdr << m_bounded_sequence_int32_field; - - - scdr << m_bounded_sequence_uint32_field; - - - scdr << m_bounded_sequence_int64_field; - - - scdr << m_bounded_sequence_uint64_field; - - - scdr << m_bounded_sequence_float_field; - - - scdr << m_bounded_sequence_double_field; - - - scdr << m_bounded_sequence_bool_field; - - - scdr << static_cast(m_bounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), m_bounded_sequence_enum_field.size()); - - - scdr << static_cast(m_bounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), m_bounded_sequence_enum2_field.size()); - - - scdr << m_bounded_sequence_struct_field; - - - scdr << m_unbounded_sequence_char_field; - - - scdr << m_unbounded_sequence_uint8_field; - - - scdr << m_unbounded_sequence_int16_field; - - - scdr << m_unbounded_sequence_uint16_field; - - - scdr << m_unbounded_sequence_int32_field; - - - scdr << m_unbounded_sequence_uint32_field; - - - scdr << m_unbounded_sequence_int64_field; - - - scdr << m_unbounded_sequence_uint64_field; - - - scdr << m_unbounded_sequence_float_field; - - - scdr << m_unbounded_sequence_double_field; - - - scdr << m_unbounded_sequence_bool_field; - - - scdr << static_cast(m_unbounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), m_unbounded_sequence_enum_field.size()); - - - scdr << static_cast(m_unbounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), m_unbounded_sequence_enum2_field.size()); - - - scdr << m_unbounded_sequence_struct_field; - - -} - -void CompleteTestType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (Material)enum_value; - } - - - - dcdr >> m_struct_field; - - - - dcdr >> m_char_opt_field; - - - - dcdr >> m_uint8_opt_field; - - - - dcdr >> m_int16_opt_field; - - - - dcdr >> m_uint16_opt_field; - - - - dcdr >> m_int32_opt_field; - - - - dcdr >> m_uint32_opt_field; - - - - dcdr >> m_int64_opt_field; - - - - dcdr >> m_uint64_opt_field; - - - - dcdr >> m_float_opt_field; - - - - dcdr >> m_double_opt_field; - - - - dcdr >> m_bool_opt_field; - - - - dcdr >> m_string_opt_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_opt_field = (Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_opt_field = (Material)enum_value; - } - - - - dcdr >> m_struct_opt_field; - - - - dcdr >> m_array_char_field; - - - - dcdr >> m_array_uint8_field; - - - - dcdr >> m_array_int16_field; - - - - dcdr >> m_array_uint16_field; - - - - dcdr >> m_array_int32_field; - - - - dcdr >> m_array_uint32_field; - - - - dcdr >> m_array_int64_field; - - - - dcdr >> m_array_uint64_field; - - - - dcdr >> m_array_float_field; - - - - dcdr >> m_array_double_field; - - - - dcdr >> m_array_bool_field; - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - - dcdr >> m_array_struct_field; - - - - dcdr >> m_bounded_sequence_char_field; - - - - dcdr >> m_bounded_sequence_uint8_field; - - - - dcdr >> m_bounded_sequence_int16_field; - - - - dcdr >> m_bounded_sequence_uint16_field; - - - - dcdr >> m_bounded_sequence_int32_field; - - - - dcdr >> m_bounded_sequence_uint32_field; - - - - dcdr >> m_bounded_sequence_int64_field; - - - - dcdr >> m_bounded_sequence_uint64_field; - - - - dcdr >> m_bounded_sequence_float_field; - - - - dcdr >> m_bounded_sequence_double_field; - - - - dcdr >> m_bounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_bounded_sequence_struct_field; - - - - dcdr >> m_unbounded_sequence_char_field; - - - - dcdr >> m_unbounded_sequence_uint8_field; - - - - dcdr >> m_unbounded_sequence_int16_field; - - - - dcdr >> m_unbounded_sequence_uint16_field; - - - - dcdr >> m_unbounded_sequence_int32_field; - - - - dcdr >> m_unbounded_sequence_uint32_field; - - - - dcdr >> m_unbounded_sequence_int64_field; - - - - dcdr >> m_unbounded_sequence_uint64_field; - - - - dcdr >> m_unbounded_sequence_float_field; - - - - dcdr >> m_unbounded_sequence_double_field; - - - - dcdr >> m_unbounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_unbounded_sequence_struct_field; - - -} - - -bool CompleteTestType::isKeyDefined() -{ - return false; -} - -void CompleteTestType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void CompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char CompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& CompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void CompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t CompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& CompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void CompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t CompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& CompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void CompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t CompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& CompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void CompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t CompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& CompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void CompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t CompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& CompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void CompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t CompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& CompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void CompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t CompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& CompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void CompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float CompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& CompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void CompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double CompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& CompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void CompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool CompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& CompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void CompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void CompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& CompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& CompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void CompleteTestType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color CompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& CompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void CompleteTestType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material CompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& CompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void CompleteTestType::struct_field( - const StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void CompleteTestType::struct_field( - StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const StructType& CompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -StructType& CompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ -void CompleteTestType::char_opt_field( - char _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ -char CompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -char& CompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - uint8_t _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ -uint8_t CompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -uint8_t& CompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - int16_t _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ -int16_t CompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -int16_t& CompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - uint16_t _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ -uint16_t CompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -uint16_t& CompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - int32_t _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ -int32_t CompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -int32_t& CompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - uint32_t _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ -uint32_t CompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -uint32_t& CompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - int64_t _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ -int64_t CompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -int64_t& CompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - uint64_t _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ -uint64_t CompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -uint64_t& CompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ -void CompleteTestType::float_opt_field( - float _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ -float CompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -float& CompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ -void CompleteTestType::double_opt_field( - double _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ -double CompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -double& CompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - bool _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ -bool CompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -bool& CompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void CompleteTestType::string_opt_field( - const std::string& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void CompleteTestType::string_opt_field( - std::string&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const std::string& CompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -std::string& CompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - Color _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ -Color CompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -Color& CompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - Material _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ -Material CompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -Material& CompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - const StructType& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - StructType&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const StructType& CompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -StructType& CompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void CompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void CompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& CompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& CompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& CompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& CompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& CompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& CompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& CompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& CompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& CompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& CompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& CompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& CompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& CompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& CompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& CompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& CompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void CompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void CompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& CompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& CompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void CompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void CompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& CompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& CompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& CompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& CompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& CompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& CompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& CompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& CompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& CompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& CompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& CompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& CompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& CompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& CompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& CompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& CompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& CompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& CompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& CompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& CompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& CompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& CompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& CompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& CompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& CompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& CompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& CompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& CompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& CompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& CompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& CompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& CompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& CompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& CompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& CompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& CompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& CompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& CompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& CompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& CompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& CompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& CompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& CompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& CompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& CompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - - - - -KeyedCompleteTestType::KeyedCompleteTestType() -{ - // long m_id - m_id = 0; - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // Color m_enum_field - m_enum_field = ::RED; - // Material m_enum2_field - m_enum2_field = ::WOOD; - // StructType m_struct_field - - // char m_char_opt_field - m_char_opt_field = 0; - // octet m_uint8_opt_field - m_uint8_opt_field = 0; - // short m_int16_opt_field - m_int16_opt_field = 0; - // unsigned short m_uint16_opt_field - m_uint16_opt_field = 0; - // long m_int32_opt_field - m_int32_opt_field = 0; - // unsigned long m_uint32_opt_field - m_uint32_opt_field = 0; - // long long m_int64_opt_field - m_int64_opt_field = 0; - // unsigned long long m_uint64_opt_field - m_uint64_opt_field = 0; - // float m_float_opt_field - m_float_opt_field = 0.0; - // double m_double_opt_field - m_double_opt_field = 0.0; - // boolean m_bool_opt_field - m_bool_opt_field = false; - // /type_d() m_string_opt_field - - // Color m_enum_opt_field - m_enum_opt_field = ::RED; - // Material m_enum2_opt_field - m_enum2_opt_field = ::WOOD; - // StructType m_struct_opt_field - - // char m_array_char_field - memset(&m_array_char_field, 0, ((max_array_size)) * 1); - // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); - // short m_array_int16_field - memset(&m_array_int16_field, 0, ((max_array_size)) * 2); - // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); - // long m_array_int32_field - memset(&m_array_int32_field, 0, ((max_array_size)) * 4); - // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); - // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((max_array_size)) * 8); - // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); - // float m_array_float_field - memset(&m_array_float_field, 0, ((max_array_size)) * 4); - // double m_array_double_field - memset(&m_array_double_field, 0, ((max_array_size)) * 8); - // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((max_array_size)) * 1); - // Color m_array_enum_field - memset(&m_array_enum_field, 0, ((max_array_size)) * 4); - // Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); - // StructType m_array_struct_field - - // sequence m_bounded_sequence_char_field - - // sequence m_bounded_sequence_uint8_field - - // sequence m_bounded_sequence_int16_field - - // sequence m_bounded_sequence_uint16_field - - // sequence m_bounded_sequence_int32_field - - // sequence m_bounded_sequence_uint32_field - - // sequence m_bounded_sequence_int64_field - - // sequence m_bounded_sequence_uint64_field - - // sequence m_bounded_sequence_float_field - - // sequence m_bounded_sequence_double_field - - // sequence m_bounded_sequence_bool_field - - // sequence m_bounded_sequence_enum_field - - // sequence m_bounded_sequence_enum2_field - - // sequence m_bounded_sequence_struct_field - - // sequence m_unbounded_sequence_char_field - - // sequence m_unbounded_sequence_uint8_field - - // sequence m_unbounded_sequence_int16_field - - // sequence m_unbounded_sequence_uint16_field - - // sequence m_unbounded_sequence_int32_field - - // sequence m_unbounded_sequence_uint32_field - - // sequence m_unbounded_sequence_int64_field - - // sequence m_unbounded_sequence_uint64_field - - // sequence m_unbounded_sequence_float_field - - // sequence m_unbounded_sequence_double_field - - // sequence m_unbounded_sequence_bool_field - - // sequence m_unbounded_sequence_enum_field - - // sequence m_unbounded_sequence_enum2_field - - // sequence m_unbounded_sequence_struct_field - - -} - -KeyedCompleteTestType::~KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - -} - -KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - - return *this; -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - - return *this; -} - -bool KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const -{ - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const -{ - return !(*this == x); -} - -size_t KeyedCompleteTestType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return KeyedCompleteTestType_max_cdr_typesize; -} - -size_t KeyedCompleteTestType::getCdrSerializedSize( - const KeyedCompleteTestType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += StructType::getCdrSerializedSize(data.struct_field(), current_alignment); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_opt_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - - for(size_t a = 0; a < data.array_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.array_struct_field().at(a), current_alignment); - - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_char_field().size() > 0) - { - current_alignment += (data.bounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_float_field().size() > 0) - { - current_alignment += (data.bounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_double_field().size() > 0) - { - current_alignment += (data.bounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.bounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.bounded_sequence_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.bounded_sequence_struct_field().at(a), current_alignment); - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_char_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_float_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_double_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.unbounded_sequence_struct_field().size(); ++a) - { - current_alignment += StructType::getCdrSerializedSize(data.unbounded_sequence_struct_field().at(a), current_alignment); - } - - - - return current_alignment - initial_alignment; -} - - -void KeyedCompleteTestType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_id; - - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - - scdr << m_struct_field; - - scdr << m_char_opt_field; - - scdr << m_uint8_opt_field; - - scdr << m_int16_opt_field; - - scdr << m_uint16_opt_field; - - scdr << m_int32_opt_field; - - scdr << m_uint32_opt_field; - - scdr << m_int64_opt_field; - - scdr << m_uint64_opt_field; - - scdr << m_float_opt_field; - - scdr << m_double_opt_field; - - scdr << m_bool_opt_field; - - scdr << m_string_opt_field.c_str(); - - scdr << (uint32_t)m_enum_opt_field; - - scdr << (uint32_t)m_enum2_opt_field; - - scdr << m_struct_opt_field; - - scdr << m_array_char_field; - - - scdr << m_array_uint8_field; - - - scdr << m_array_int16_field; - - - scdr << m_array_uint16_field; - - - scdr << m_array_int32_field; - - - scdr << m_array_uint32_field; - - - scdr << m_array_int64_field; - - - scdr << m_array_uint64_field; - - - scdr << m_array_float_field; - - - scdr << m_array_double_field; - - - scdr << m_array_bool_field; - - - scdr.serializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - scdr.serializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - scdr << m_array_struct_field; - - - scdr << m_bounded_sequence_char_field; - - - scdr << m_bounded_sequence_uint8_field; - - - scdr << m_bounded_sequence_int16_field; - - - scdr << m_bounded_sequence_uint16_field; - - - scdr << m_bounded_sequence_int32_field; - - - scdr << m_bounded_sequence_uint32_field; - - - scdr << m_bounded_sequence_int64_field; - - - scdr << m_bounded_sequence_uint64_field; - - - scdr << m_bounded_sequence_float_field; - - - scdr << m_bounded_sequence_double_field; - - - scdr << m_bounded_sequence_bool_field; - - - scdr << static_cast(m_bounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), m_bounded_sequence_enum_field.size()); - - - scdr << static_cast(m_bounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), m_bounded_sequence_enum2_field.size()); - - - scdr << m_bounded_sequence_struct_field; - - - scdr << m_unbounded_sequence_char_field; - - - scdr << m_unbounded_sequence_uint8_field; - - - scdr << m_unbounded_sequence_int16_field; - - - scdr << m_unbounded_sequence_uint16_field; - - - scdr << m_unbounded_sequence_int32_field; - - - scdr << m_unbounded_sequence_uint32_field; - - - scdr << m_unbounded_sequence_int64_field; - - - scdr << m_unbounded_sequence_uint64_field; - - - scdr << m_unbounded_sequence_float_field; - - - scdr << m_unbounded_sequence_double_field; - - - scdr << m_unbounded_sequence_bool_field; - - - scdr << static_cast(m_unbounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), m_unbounded_sequence_enum_field.size()); - - - scdr << static_cast(m_unbounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), m_unbounded_sequence_enum2_field.size()); - - - scdr << m_unbounded_sequence_struct_field; - - -} - -void KeyedCompleteTestType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_id; - - - - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (Material)enum_value; - } - - - - dcdr >> m_struct_field; - - - - dcdr >> m_char_opt_field; - - - - dcdr >> m_uint8_opt_field; - - - - dcdr >> m_int16_opt_field; - - - - dcdr >> m_uint16_opt_field; - - - - dcdr >> m_int32_opt_field; - - - - dcdr >> m_uint32_opt_field; - - - - dcdr >> m_int64_opt_field; - - - - dcdr >> m_uint64_opt_field; - - - - dcdr >> m_float_opt_field; - - - - dcdr >> m_double_opt_field; - - - - dcdr >> m_bool_opt_field; - - - - dcdr >> m_string_opt_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_opt_field = (Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_opt_field = (Material)enum_value; - } - - - - dcdr >> m_struct_opt_field; - - - - dcdr >> m_array_char_field; - - - - dcdr >> m_array_uint8_field; - - - - dcdr >> m_array_int16_field; - - - - dcdr >> m_array_uint16_field; - - - - dcdr >> m_array_int32_field; - - - - dcdr >> m_array_uint32_field; - - - - dcdr >> m_array_int64_field; - - - - dcdr >> m_array_uint64_field; - - - - dcdr >> m_array_float_field; - - - - dcdr >> m_array_double_field; - - - - dcdr >> m_array_bool_field; - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - - dcdr >> m_array_struct_field; - - - - dcdr >> m_bounded_sequence_char_field; - - - - dcdr >> m_bounded_sequence_uint8_field; - - - - dcdr >> m_bounded_sequence_int16_field; - - - - dcdr >> m_bounded_sequence_uint16_field; - - - - dcdr >> m_bounded_sequence_int32_field; - - - - dcdr >> m_bounded_sequence_uint32_field; - - - - dcdr >> m_bounded_sequence_int64_field; - - - - dcdr >> m_bounded_sequence_uint64_field; - - - - dcdr >> m_bounded_sequence_float_field; - - - - dcdr >> m_bounded_sequence_double_field; - - - - dcdr >> m_bounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_bounded_sequence_struct_field; - - - - dcdr >> m_unbounded_sequence_char_field; - - - - dcdr >> m_unbounded_sequence_uint8_field; - - - - dcdr >> m_unbounded_sequence_int16_field; - - - - dcdr >> m_unbounded_sequence_uint16_field; - - - - dcdr >> m_unbounded_sequence_int32_field; - - - - dcdr >> m_unbounded_sequence_uint32_field; - - - - dcdr >> m_unbounded_sequence_int64_field; - - - - dcdr >> m_unbounded_sequence_uint64_field; - - - - dcdr >> m_unbounded_sequence_float_field; - - - - dcdr >> m_unbounded_sequence_double_field; - - - - dcdr >> m_unbounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_unbounded_sequence_struct_field; - - -} - - -bool KeyedCompleteTestType::isKeyDefined() -{ - return true; -} - -void KeyedCompleteTestType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; - - scdr << m_id; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - -/*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ -void KeyedCompleteTestType::id( - int32_t _id) -{ - m_id = _id; -} - -/*! - * @brief This function returns the value of member id - * @return Value of member id - */ -int32_t KeyedCompleteTestType::id() const -{ - return m_id; -} - -/*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ -int32_t& KeyedCompleteTestType::id() -{ - return m_id; -} - - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void KeyedCompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char KeyedCompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& KeyedCompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t KeyedCompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& KeyedCompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void KeyedCompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t KeyedCompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& KeyedCompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t KeyedCompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& KeyedCompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void KeyedCompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t KeyedCompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& KeyedCompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t KeyedCompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& KeyedCompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void KeyedCompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t KeyedCompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& KeyedCompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t KeyedCompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& KeyedCompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void KeyedCompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float KeyedCompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& KeyedCompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void KeyedCompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double KeyedCompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& KeyedCompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void KeyedCompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool KeyedCompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& KeyedCompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void KeyedCompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void KeyedCompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& KeyedCompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& KeyedCompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void KeyedCompleteTestType::enum_field( - Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -Color KeyedCompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -Color& KeyedCompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void KeyedCompleteTestType::enum2_field( - Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -Material KeyedCompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -Material& KeyedCompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void KeyedCompleteTestType::struct_field( - const StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void KeyedCompleteTestType::struct_field( - StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const StructType& KeyedCompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -StructType& KeyedCompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - char _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ -char KeyedCompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -char& KeyedCompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - uint8_t _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ -uint8_t KeyedCompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -uint8_t& KeyedCompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - int16_t _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ -int16_t KeyedCompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -int16_t& KeyedCompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - uint16_t _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ -uint16_t KeyedCompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -uint16_t& KeyedCompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - int32_t _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ -int32_t KeyedCompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -int32_t& KeyedCompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - uint32_t _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ -uint32_t KeyedCompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -uint32_t& KeyedCompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - int64_t _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ -int64_t KeyedCompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -int64_t& KeyedCompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - uint64_t _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ -uint64_t KeyedCompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -uint64_t& KeyedCompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - float _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ -float KeyedCompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -float& KeyedCompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - double _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ -double KeyedCompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -double& KeyedCompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - bool _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ -bool KeyedCompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -bool& KeyedCompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - const std::string& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - std::string&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const std::string& KeyedCompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -std::string& KeyedCompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - Color _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ -Color KeyedCompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -Color& KeyedCompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - Material _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ -Material KeyedCompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -Material& KeyedCompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - const StructType& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - StructType&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const StructType& KeyedCompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -StructType& KeyedCompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& KeyedCompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& KeyedCompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& KeyedCompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& KeyedCompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& KeyedCompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& KeyedCompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& KeyedCompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& KeyedCompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& KeyedCompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& KeyedCompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& KeyedCompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& KeyedCompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& KeyedCompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& KeyedCompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& KeyedCompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& KeyedCompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& KeyedCompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& KeyedCompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& KeyedCompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& KeyedCompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& KeyedCompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& KeyedCompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& KeyedCompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& KeyedCompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& KeyedCompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& KeyedCompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& KeyedCompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& KeyedCompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python/test/types/test_completev1.h b/fastdds_python/test/types/test_completev1.h deleted file mode 100644 index 7258f061..00000000 --- a/fastdds_python/test/types/test_completev1.h +++ /dev/null @@ -1,4482 +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 test_complete.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_TEST_COMPLETE_H_ -#define _FAST_DDS_GENERATED_TEST_COMPLETE_H_ - -#include "test_included_modules.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(TEST_COMPLETE_SOURCE) -#define TEST_COMPLETE_DllAPI __declspec( dllexport ) -#else -#define TEST_COMPLETE_DllAPI __declspec( dllimport ) -#endif // TEST_COMPLETE_SOURCE -#else -#define TEST_COMPLETE_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define TEST_COMPLETE_DllAPI -#endif // _WIN32 - -namespace eprosima { -namespace fastcdr { -class Cdr; -} // namespace fastcdr -} // namespace eprosima - - - -/*! - * @brief This class represents the enumeration Color defined by the user in the IDL file. - * @ingroup test_complete - */ -enum Color : uint32_t -{ - RED, - GREEN, - BLUE, - YELLOW, - MAGENTA -}; -/*! - * @brief This class represents the enumeration Material defined by the user in the IDL file. - * @ingroup test_complete - */ -enum Material : uint32_t -{ - WOOD, - PLASTIC, - METAL, - CONCRETE, - STONE -}; - - -/*! - * @brief This class represents the structure StructType defined by the user in the IDL file. - * @ingroup test_complete - */ -class StructType -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport StructType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~StructType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object StructType that will be copied. - */ - eProsima_user_DllExport StructType( - const StructType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object StructType that will be copied. - */ - eProsima_user_DllExport StructType( - StructType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object StructType that will be copied. - */ - eProsima_user_DllExport StructType& operator =( - const StructType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object StructType that will be copied. - */ - eProsima_user_DllExport StructType& operator =( - StructType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x StructType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const StructType& x) const; - - /*! - * @brief Comparison operator. - * @param x StructType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const StructType& x) const; - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport Material& enum2_field(); - - - /*! - * @brief This function copies the value in member included_module_struct - * @param _included_module_struct New value to be copied in member included_module_struct - */ - eProsima_user_DllExport void included_module_struct( - const eprosima::test2::StructType2& _included_module_struct); - - /*! - * @brief This function moves the value in member included_module_struct - * @param _included_module_struct New value to be moved in member included_module_struct - */ - eProsima_user_DllExport void included_module_struct( - eprosima::test2::StructType2&& _included_module_struct); - - /*! - * @brief This function returns a constant reference to member included_module_struct - * @return Constant reference to member included_module_struct - */ - eProsima_user_DllExport const eprosima::test2::StructType2& included_module_struct() const; - - /*! - * @brief This function returns a reference to member included_module_struct - * @return Reference to member included_module_struct - */ - eProsima_user_DllExport eprosima::test2::StructType2& included_module_struct(); - - - /*! - * @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 StructType& 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: - - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - Color m_enum_field; - Material m_enum2_field; - eprosima::test2::StructType2 m_included_module_struct; - -}; - -const uint32_t max_array_size = 3; - -const uint32_t max_seq_size = 5; - - - - - -/*! - * @brief This class represents the structure CompleteTestType defined by the user in the IDL file. - * @ingroup test_complete - */ -class CompleteTestType -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport CompleteTestType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~CompleteTestType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType( - const CompleteTestType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType( - CompleteTestType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType& operator =( - const CompleteTestType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType& operator =( - CompleteTestType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x CompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const CompleteTestType& x) const; - - /*! - * @brief Comparison operator. - * @param x CompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const CompleteTestType& x) const; - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport Material& enum2_field(); - - - /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ - eProsima_user_DllExport void struct_field( - const StructType& _struct_field); - - /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ - eProsima_user_DllExport void struct_field( - StructType&& _struct_field); - - /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ - eProsima_user_DllExport const StructType& struct_field() const; - - /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ - eProsima_user_DllExport StructType& struct_field(); - - - /*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ - eProsima_user_DllExport void char_opt_field( - char _char_opt_field); - - /*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ - eProsima_user_DllExport char char_opt_field() const; - - /*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ - eProsima_user_DllExport char& char_opt_field(); - - - /*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ - eProsima_user_DllExport void uint8_opt_field( - uint8_t _uint8_opt_field); - - /*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ - eProsima_user_DllExport uint8_t uint8_opt_field() const; - - /*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ - eProsima_user_DllExport uint8_t& uint8_opt_field(); - - - /*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ - eProsima_user_DllExport void int16_opt_field( - int16_t _int16_opt_field); - - /*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ - eProsima_user_DllExport int16_t int16_opt_field() const; - - /*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ - eProsima_user_DllExport int16_t& int16_opt_field(); - - - /*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ - eProsima_user_DllExport void uint16_opt_field( - uint16_t _uint16_opt_field); - - /*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ - eProsima_user_DllExport uint16_t uint16_opt_field() const; - - /*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ - eProsima_user_DllExport uint16_t& uint16_opt_field(); - - - /*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ - eProsima_user_DllExport void int32_opt_field( - int32_t _int32_opt_field); - - /*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ - eProsima_user_DllExport int32_t int32_opt_field() const; - - /*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ - eProsima_user_DllExport int32_t& int32_opt_field(); - - - /*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ - eProsima_user_DllExport void uint32_opt_field( - uint32_t _uint32_opt_field); - - /*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ - eProsima_user_DllExport uint32_t uint32_opt_field() const; - - /*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ - eProsima_user_DllExport uint32_t& uint32_opt_field(); - - - /*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ - eProsima_user_DllExport void int64_opt_field( - int64_t _int64_opt_field); - - /*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ - eProsima_user_DllExport int64_t int64_opt_field() const; - - /*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ - eProsima_user_DllExport int64_t& int64_opt_field(); - - - /*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ - eProsima_user_DllExport void uint64_opt_field( - uint64_t _uint64_opt_field); - - /*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ - eProsima_user_DllExport uint64_t uint64_opt_field() const; - - /*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ - eProsima_user_DllExport uint64_t& uint64_opt_field(); - - - /*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ - eProsima_user_DllExport void float_opt_field( - float _float_opt_field); - - /*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ - eProsima_user_DllExport float float_opt_field() const; - - /*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ - eProsima_user_DllExport float& float_opt_field(); - - - /*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ - eProsima_user_DllExport void double_opt_field( - double _double_opt_field); - - /*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ - eProsima_user_DllExport double double_opt_field() const; - - /*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ - eProsima_user_DllExport double& double_opt_field(); - - - /*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ - eProsima_user_DllExport void bool_opt_field( - bool _bool_opt_field); - - /*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ - eProsima_user_DllExport bool bool_opt_field() const; - - /*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ - eProsima_user_DllExport bool& bool_opt_field(); - - - /*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - const std::string& _string_opt_field); - - /*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - std::string&& _string_opt_field); - - /*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ - eProsima_user_DllExport const std::string& string_opt_field() const; - - /*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ - eProsima_user_DllExport std::string& string_opt_field(); - - - /*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ - eProsima_user_DllExport void enum_opt_field( - Color _enum_opt_field); - - /*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ - eProsima_user_DllExport Color enum_opt_field() const; - - /*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ - eProsima_user_DllExport Color& enum_opt_field(); - - - /*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ - eProsima_user_DllExport void enum2_opt_field( - Material _enum2_opt_field); - - /*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ - eProsima_user_DllExport Material enum2_opt_field() const; - - /*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ - eProsima_user_DllExport Material& enum2_opt_field(); - - - /*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - const StructType& _struct_opt_field); - - /*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - StructType&& _struct_opt_field); - - /*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ - eProsima_user_DllExport const StructType& struct_opt_field() const; - - /*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ - eProsima_user_DllExport StructType& struct_opt_field(); - - - /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); - - /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); - - /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ - eProsima_user_DllExport const std::array& array_char_field() const; - - /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ - eProsima_user_DllExport std::array& array_char_field(); - - - /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); - - /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); - - /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ - eProsima_user_DllExport const std::array& array_uint8_field() const; - - /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ - eProsima_user_DllExport std::array& array_uint8_field(); - - - /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); - - /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); - - /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ - eProsima_user_DllExport const std::array& array_int16_field() const; - - /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ - eProsima_user_DllExport std::array& array_int16_field(); - - - /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); - - /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); - - /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ - eProsima_user_DllExport const std::array& array_uint16_field() const; - - /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ - eProsima_user_DllExport std::array& array_uint16_field(); - - - /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); - - /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); - - /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ - eProsima_user_DllExport const std::array& array_int32_field() const; - - /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ - eProsima_user_DllExport std::array& array_int32_field(); - - - /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); - - /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); - - /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ - eProsima_user_DllExport const std::array& array_uint32_field() const; - - /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ - eProsima_user_DllExport std::array& array_uint32_field(); - - - /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); - - /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); - - /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ - eProsima_user_DllExport const std::array& array_int64_field() const; - - /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ - eProsima_user_DllExport std::array& array_int64_field(); - - - /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); - - /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); - - /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ - eProsima_user_DllExport const std::array& array_uint64_field() const; - - /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ - eProsima_user_DllExport std::array& array_uint64_field(); - - - /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); - - /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); - - /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ - eProsima_user_DllExport const std::array& array_float_field() const; - - /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ - eProsima_user_DllExport std::array& array_float_field(); - - - /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); - - /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); - - /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ - eProsima_user_DllExport const std::array& array_double_field() const; - - /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ - eProsima_user_DllExport std::array& array_double_field(); - - - /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); - - /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); - - /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ - eProsima_user_DllExport const std::array& array_bool_field() const; - - /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ - eProsima_user_DllExport std::array& array_bool_field(); - - - /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); - - /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); - - /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ - eProsima_user_DllExport const std::array& array_enum_field() const; - - /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ - eProsima_user_DllExport std::array& array_enum_field(); - - - /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); - - /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); - - /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ - eProsima_user_DllExport const std::array& array_enum2_field() const; - - /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ - eProsima_user_DllExport std::array& array_enum2_field(); - - - /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); - - /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); - - /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ - eProsima_user_DllExport const std::array& array_struct_field() const; - - /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ - eProsima_user_DllExport std::array& array_struct_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); - - /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); - - /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); - - /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); - - - /*! - * @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 CompleteTestType& 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: - - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - Color m_enum_field; - Material m_enum2_field; - StructType m_struct_field; - char m_char_opt_field; - uint8_t m_uint8_opt_field; - int16_t m_int16_opt_field; - uint16_t m_uint16_opt_field; - int32_t m_int32_opt_field; - uint32_t m_uint32_opt_field; - int64_t m_int64_opt_field; - uint64_t m_uint64_opt_field; - float m_float_opt_field; - double m_double_opt_field; - bool m_bool_opt_field; - std::string m_string_opt_field; - Color m_enum_opt_field; - Material m_enum2_opt_field; - StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; - std::vector m_bounded_sequence_char_field; - std::vector m_bounded_sequence_uint8_field; - std::vector m_bounded_sequence_int16_field; - std::vector m_bounded_sequence_uint16_field; - std::vector m_bounded_sequence_int32_field; - std::vector m_bounded_sequence_uint32_field; - std::vector m_bounded_sequence_int64_field; - std::vector m_bounded_sequence_uint64_field; - std::vector m_bounded_sequence_float_field; - std::vector m_bounded_sequence_double_field; - std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; - std::vector m_unbounded_sequence_char_field; - std::vector m_unbounded_sequence_uint8_field; - std::vector m_unbounded_sequence_int16_field; - std::vector m_unbounded_sequence_uint16_field; - std::vector m_unbounded_sequence_int32_field; - std::vector m_unbounded_sequence_uint32_field; - std::vector m_unbounded_sequence_int64_field; - std::vector m_unbounded_sequence_uint64_field; - std::vector m_unbounded_sequence_float_field; - std::vector m_unbounded_sequence_double_field; - std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; - -}; - - - - - -/*! - * @brief This class represents the structure KeyedCompleteTestType defined by the user in the IDL file. - * @ingroup test_complete - */ -class KeyedCompleteTestType -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport KeyedCompleteTestType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~KeyedCompleteTestType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType( - const KeyedCompleteTestType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType& operator =( - const KeyedCompleteTestType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType& operator =( - KeyedCompleteTestType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x KeyedCompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const KeyedCompleteTestType& x) const; - - /*! - * @brief Comparison operator. - * @param x KeyedCompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const KeyedCompleteTestType& x) const; - - /*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ - eProsima_user_DllExport void id( - int32_t _id); - - /*! - * @brief This function returns the value of member id - * @return Value of member id - */ - eProsima_user_DllExport int32_t id() const; - - /*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ - eProsima_user_DllExport int32_t& id(); - - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport Material& enum2_field(); - - - /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ - eProsima_user_DllExport void struct_field( - const StructType& _struct_field); - - /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ - eProsima_user_DllExport void struct_field( - StructType&& _struct_field); - - /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ - eProsima_user_DllExport const StructType& struct_field() const; - - /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ - eProsima_user_DllExport StructType& struct_field(); - - - /*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ - eProsima_user_DllExport void char_opt_field( - char _char_opt_field); - - /*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ - eProsima_user_DllExport char char_opt_field() const; - - /*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ - eProsima_user_DllExport char& char_opt_field(); - - - /*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ - eProsima_user_DllExport void uint8_opt_field( - uint8_t _uint8_opt_field); - - /*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ - eProsima_user_DllExport uint8_t uint8_opt_field() const; - - /*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ - eProsima_user_DllExport uint8_t& uint8_opt_field(); - - - /*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ - eProsima_user_DllExport void int16_opt_field( - int16_t _int16_opt_field); - - /*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ - eProsima_user_DllExport int16_t int16_opt_field() const; - - /*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ - eProsima_user_DllExport int16_t& int16_opt_field(); - - - /*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ - eProsima_user_DllExport void uint16_opt_field( - uint16_t _uint16_opt_field); - - /*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ - eProsima_user_DllExport uint16_t uint16_opt_field() const; - - /*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ - eProsima_user_DllExport uint16_t& uint16_opt_field(); - - - /*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ - eProsima_user_DllExport void int32_opt_field( - int32_t _int32_opt_field); - - /*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ - eProsima_user_DllExport int32_t int32_opt_field() const; - - /*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ - eProsima_user_DllExport int32_t& int32_opt_field(); - - - /*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ - eProsima_user_DllExport void uint32_opt_field( - uint32_t _uint32_opt_field); - - /*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ - eProsima_user_DllExport uint32_t uint32_opt_field() const; - - /*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ - eProsima_user_DllExport uint32_t& uint32_opt_field(); - - - /*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ - eProsima_user_DllExport void int64_opt_field( - int64_t _int64_opt_field); - - /*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ - eProsima_user_DllExport int64_t int64_opt_field() const; - - /*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ - eProsima_user_DllExport int64_t& int64_opt_field(); - - - /*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ - eProsima_user_DllExport void uint64_opt_field( - uint64_t _uint64_opt_field); - - /*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ - eProsima_user_DllExport uint64_t uint64_opt_field() const; - - /*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ - eProsima_user_DllExport uint64_t& uint64_opt_field(); - - - /*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ - eProsima_user_DllExport void float_opt_field( - float _float_opt_field); - - /*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ - eProsima_user_DllExport float float_opt_field() const; - - /*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ - eProsima_user_DllExport float& float_opt_field(); - - - /*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ - eProsima_user_DllExport void double_opt_field( - double _double_opt_field); - - /*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ - eProsima_user_DllExport double double_opt_field() const; - - /*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ - eProsima_user_DllExport double& double_opt_field(); - - - /*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ - eProsima_user_DllExport void bool_opt_field( - bool _bool_opt_field); - - /*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ - eProsima_user_DllExport bool bool_opt_field() const; - - /*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ - eProsima_user_DllExport bool& bool_opt_field(); - - - /*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - const std::string& _string_opt_field); - - /*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - std::string&& _string_opt_field); - - /*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ - eProsima_user_DllExport const std::string& string_opt_field() const; - - /*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ - eProsima_user_DllExport std::string& string_opt_field(); - - - /*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ - eProsima_user_DllExport void enum_opt_field( - Color _enum_opt_field); - - /*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ - eProsima_user_DllExport Color enum_opt_field() const; - - /*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ - eProsima_user_DllExport Color& enum_opt_field(); - - - /*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ - eProsima_user_DllExport void enum2_opt_field( - Material _enum2_opt_field); - - /*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ - eProsima_user_DllExport Material enum2_opt_field() const; - - /*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ - eProsima_user_DllExport Material& enum2_opt_field(); - - - /*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - const StructType& _struct_opt_field); - - /*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - StructType&& _struct_opt_field); - - /*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ - eProsima_user_DllExport const StructType& struct_opt_field() const; - - /*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ - eProsima_user_DllExport StructType& struct_opt_field(); - - - /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); - - /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); - - /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ - eProsima_user_DllExport const std::array& array_char_field() const; - - /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ - eProsima_user_DllExport std::array& array_char_field(); - - - /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); - - /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); - - /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ - eProsima_user_DllExport const std::array& array_uint8_field() const; - - /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ - eProsima_user_DllExport std::array& array_uint8_field(); - - - /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); - - /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); - - /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ - eProsima_user_DllExport const std::array& array_int16_field() const; - - /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ - eProsima_user_DllExport std::array& array_int16_field(); - - - /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); - - /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); - - /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ - eProsima_user_DllExport const std::array& array_uint16_field() const; - - /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ - eProsima_user_DllExport std::array& array_uint16_field(); - - - /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); - - /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); - - /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ - eProsima_user_DllExport const std::array& array_int32_field() const; - - /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ - eProsima_user_DllExport std::array& array_int32_field(); - - - /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); - - /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); - - /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ - eProsima_user_DllExport const std::array& array_uint32_field() const; - - /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ - eProsima_user_DllExport std::array& array_uint32_field(); - - - /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); - - /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); - - /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ - eProsima_user_DllExport const std::array& array_int64_field() const; - - /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ - eProsima_user_DllExport std::array& array_int64_field(); - - - /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); - - /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); - - /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ - eProsima_user_DllExport const std::array& array_uint64_field() const; - - /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ - eProsima_user_DllExport std::array& array_uint64_field(); - - - /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); - - /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); - - /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ - eProsima_user_DllExport const std::array& array_float_field() const; - - /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ - eProsima_user_DllExport std::array& array_float_field(); - - - /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); - - /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); - - /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ - eProsima_user_DllExport const std::array& array_double_field() const; - - /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ - eProsima_user_DllExport std::array& array_double_field(); - - - /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); - - /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); - - /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ - eProsima_user_DllExport const std::array& array_bool_field() const; - - /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ - eProsima_user_DllExport std::array& array_bool_field(); - - - /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); - - /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); - - /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ - eProsima_user_DllExport const std::array& array_enum_field() const; - - /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ - eProsima_user_DllExport std::array& array_enum_field(); - - - /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); - - /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); - - /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ - eProsima_user_DllExport const std::array& array_enum2_field() const; - - /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ - eProsima_user_DllExport std::array& array_enum2_field(); - - - /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); - - /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); - - /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ - eProsima_user_DllExport const std::array& array_struct_field() const; - - /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ - eProsima_user_DllExport std::array& array_struct_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); - - /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); - - /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); - - /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); - - - /*! - * @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 KeyedCompleteTestType& 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: - - int32_t m_id; - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - Color m_enum_field; - Material m_enum2_field; - StructType m_struct_field; - char m_char_opt_field; - uint8_t m_uint8_opt_field; - int16_t m_int16_opt_field; - uint16_t m_uint16_opt_field; - int32_t m_int32_opt_field; - uint32_t m_uint32_opt_field; - int64_t m_int64_opt_field; - uint64_t m_uint64_opt_field; - float m_float_opt_field; - double m_double_opt_field; - bool m_bool_opt_field; - std::string m_string_opt_field; - Color m_enum_opt_field; - Material m_enum2_opt_field; - StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; - std::vector m_bounded_sequence_char_field; - std::vector m_bounded_sequence_uint8_field; - std::vector m_bounded_sequence_int16_field; - std::vector m_bounded_sequence_uint16_field; - std::vector m_bounded_sequence_int32_field; - std::vector m_bounded_sequence_uint32_field; - std::vector m_bounded_sequence_int64_field; - std::vector m_bounded_sequence_uint64_field; - std::vector m_bounded_sequence_float_field; - std::vector m_bounded_sequence_double_field; - std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; - std::vector m_unbounded_sequence_char_field; - std::vector m_unbounded_sequence_uint8_field; - std::vector m_unbounded_sequence_int16_field; - std::vector m_unbounded_sequence_uint16_field; - std::vector m_unbounded_sequence_int32_field; - std::vector m_unbounded_sequence_uint32_field; - std::vector m_unbounded_sequence_int64_field; - std::vector m_unbounded_sequence_uint64_field; - std::vector m_unbounded_sequence_float_field; - std::vector m_unbounded_sequence_double_field; - std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; - -}; - - -#endif // _FAST_DDS_GENERATED_TEST_COMPLETE_H_ - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python/test/types/test_included_modules.cxx b/fastdds_python/test/types/test_included_modules.cxx deleted file mode 100644 index d7e43b32..00000000 --- a/fastdds_python/test/types/test_included_modules.cxx +++ /dev/null @@ -1,586 +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 test_included_modules.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 "test_included_modules.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - - -namespace eprosima { - -namespace test2 { - - - -StructType2::StructType2() -{ -} - -StructType2::~StructType2() -{ -} - -StructType2::StructType2( - const StructType2& x) -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; -} - -StructType2::StructType2( - StructType2&& x) noexcept -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; -} - -StructType2& StructType2::operator =( - const StructType2& x) -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - return *this; -} - -StructType2& StructType2::operator =( - StructType2&& x) noexcept -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - return *this; -} - -bool StructType2::operator ==( - const StructType2& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field); -} - -bool StructType2::operator !=( - const StructType2& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType2::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType2::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType2::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType2::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType2::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType2::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType2::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType2::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType2::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType2::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType2::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType2::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType2::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType2::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType2::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType2::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType2::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType2::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType2::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType2::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType2::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType2::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType2::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType2::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType2::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType2::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType2::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType2::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType2::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType2::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType2::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType2::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType2::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType2::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType2::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType2::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType2::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType2::enum_field( - eprosima::test2::Color2 _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test2::Color2 StructType2::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test2::Color2& StructType2::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType2::enum2_field( - eprosima::test2::Material2 _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test2::Material2 StructType2::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test2::Material2& StructType2::enum2_field() -{ - return m_enum2_field; -} - - - - -} // namespace test2 - - -} // namespace eprosima -// Include auxiliary functions like for serializing/deserializing. -#include "test_included_modulesCdrAux.ipp" - -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_included_modules.h b/fastdds_python/test/types/test_included_modules.hpp similarity index 54% rename from fastdds_python/test/types/test_included_modules.h rename to fastdds_python/test/types/test_included_modules.hpp index d9254d64..d498e591 100644 --- a/fastdds_python/test/types/test_included_modules.h +++ b/fastdds_python/test/types/test_included_modules.hpp @@ -13,32 +13,19 @@ // limitations under the License. /*! - * @file test_included_modules.h + * @file test_included_modules.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 "test_included_modulesv1.h" +#ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_HPP_ +#define _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_HPP_ -#if FASTCDR_VERSION_MAJOR > 1 - -#ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_H_ -#define _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_H_ - -#include -#include #include -#include #include -#include - +#include #include -#include -#include - - #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) @@ -64,15 +51,6 @@ #define TEST_INCLUDED_MODULES_DllAPI #endif // _WIN32 -namespace eprosima { -namespace fastcdr { -class Cdr; -class CdrSizeCalculator; -} // namespace fastcdr -} // namespace eprosima - - - namespace eprosima { namespace test2 { @@ -81,7 +59,7 @@ namespace test2 { * @brief This class represents the enumeration Color2 defined by the user in the IDL file. * @ingroup test_included_modules */ -enum Color2 : uint32_t +enum class Color2 : uint32_t { RED2, GREEN2, @@ -93,7 +71,7 @@ enum Color2 : uint32_t * @brief This class represents the enumeration Material2 defined by the user in the IDL file. * @ingroup test_included_modules */ -enum Material2 : uint32_t +enum class Material2 : uint32_t { WOOD2, PLASTIC2, @@ -101,8 +79,6 @@ enum Material2 : uint32_t CONCRETE2, STONE2 }; - - /*! * @brief This class represents the structure StructType2 defined by the user in the IDL file. * @ingroup test_included_modules @@ -114,73 +90,201 @@ class StructType2 /*! * @brief Default constructor. */ - eProsima_user_DllExport StructType2(); + eProsima_user_DllExport StructType2() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~StructType2(); + eProsima_user_DllExport ~StructType2() + { + } /*! * @brief Copy constructor. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. + * @param x Reference to the object StructType2 that will be copied. */ eProsima_user_DllExport StructType2( - const StructType2& x); + const StructType2& x) + { + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + } /*! * @brief Move constructor. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. + * @param x Reference to the object StructType2 that will be copied. */ eProsima_user_DllExport StructType2( - StructType2&& x) noexcept; + StructType2&& x) noexcept + { + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + } /*! * @brief Copy assignment. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. + * @param x Reference to the object StructType2 that will be copied. */ eProsima_user_DllExport StructType2& operator =( - const StructType2& x); + const StructType2& x) + { + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + return *this; + } /*! * @brief Move assignment. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. + * @param x Reference to the object StructType2 that will be copied. */ eProsima_user_DllExport StructType2& operator =( - StructType2&& x) noexcept; + StructType2&& x) noexcept + { + + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + return *this; + } /*! * @brief Comparison operator. - * @param x eprosima::test2::StructType2 object to compare. + * @param x StructType2 object to compare. */ eProsima_user_DllExport bool operator ==( - const StructType2& x) const; + const StructType2& x) const + { + return (m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field); + } /*! * @brief Comparison operator. - * @param x eprosima::test2::StructType2 object to compare. + * @param x StructType2 object to compare. */ eProsima_user_DllExport bool operator !=( - const StructType2& x) const; + const StructType2& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member char_field * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -188,19 +292,28 @@ class StructType2 * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -208,19 +321,28 @@ class StructType2 * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -228,19 +350,28 @@ class StructType2 * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -248,19 +379,28 @@ class StructType2 * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -268,19 +408,28 @@ class StructType2 * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -288,19 +437,28 @@ class StructType2 * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -308,19 +466,28 @@ class StructType2 * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -328,19 +495,28 @@ class StructType2 * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -348,19 +524,28 @@ class StructType2 * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -368,19 +553,28 @@ class StructType2 * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -388,26 +582,38 @@ class StructType2 * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -415,19 +621,28 @@ class StructType2 * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - eprosima::test2::Color2 _enum_field); + Color2 _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport eprosima::test2::Color2 enum_field() const; + eProsima_user_DllExport Color2 enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport eprosima::test2::Color2& enum_field(); + eProsima_user_DllExport Color2& enum_field() + { + return m_enum_field; + } /*! @@ -435,19 +650,30 @@ class StructType2 * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - eprosima::test2::Material2 _enum2_field); + Material2 _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport eprosima::test2::Material2 enum2_field() const; + eProsima_user_DllExport Material2 enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport eprosima::test2::Material2& enum2_field(); + eProsima_user_DllExport Material2& enum2_field() + { + return m_enum2_field; + } + + private: @@ -463,8 +689,8 @@ class StructType2 double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - eprosima::test2::Color2 m_enum_field{eprosima::test2::RED2}; - eprosima::test2::Material2 m_enum2_field{eprosima::test2::WOOD2}; + Color2 m_enum_field{Color2::RED2}; + Material2 m_enum2_field{Material2::WOOD2}; }; @@ -472,8 +698,6 @@ class StructType2 } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_H_ - +#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_HPP_ -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_included_modules.i b/fastdds_python/test/types/test_included_modules.i index 997f6c6a..1691cd7c 100644 --- a/fastdds_python/test/types/test_included_modules.i +++ b/fastdds_python/test/types/test_included_modules.i @@ -40,7 +40,7 @@ %{ -#include "test_included_modules.h" +#include "test_included_modules.hpp" #include %} @@ -67,8 +67,6 @@ namespace swig { %traits_penumn(enum eprosima::test2::Color2); %traits_penumn(enum eprosima::test2::Material2); - - //////////////////////////////////////////////////////// // Binding for class eprosima::test2::StructType2 //////////////////////////////////////////////////////// @@ -249,11 +247,8 @@ namespace swig { } - - // Include the class interfaces -%include "test_included_modules.h" -%include "test_included_modulesv1.h" +%include "test_included_modules.hpp" // Include the corresponding TopicDataType %include "test_included_modulesPubSubTypes.i" diff --git a/fastdds_python/test/types/test_included_modulesCdrAux.hpp b/fastdds_python/test/types/test_included_modulesCdrAux.hpp index 2724149f..e319a58d 100644 --- a/fastdds_python/test/types/test_included_modulesCdrAux.hpp +++ b/fastdds_python/test/types/test_included_modulesCdrAux.hpp @@ -22,7 +22,7 @@ #ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULESCDRAUX_HPP_ #define _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULESCDRAUX_HPP_ -#include "test_included_modules.h" +#include "test_included_modules.hpp" constexpr uint32_t eprosima_test2_StructType2_max_cdr_typesize {328UL}; constexpr uint32_t eprosima_test2_StructType2_max_key_cdr_typesize {0UL}; @@ -35,15 +35,11 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::test2::StructType2& data); - - } // namespace fastcdr } // namespace eprosima diff --git a/fastdds_python/test/types/test_included_modulesCdrAux.ipp b/fastdds_python/test/types/test_included_modulesCdrAux.ipp index 7ea181f8..c273b179 100644 --- a/fastdds_python/test/types/test_included_modulesCdrAux.ipp +++ b/fastdds_python/test/types/test_included_modulesCdrAux.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, @@ -225,8 +223,6 @@ void serialize_key( - - } // namespace fastcdr } // namespace eprosima diff --git a/fastdds_python/test/types/test_included_modulesPubSubTypes.cxx b/fastdds_python/test/types/test_included_modulesPubSubTypes.cxx index ab7ae72f..b0b1168f 100644 --- a/fastdds_python/test/types/test_included_modulesPubSubTypes.cxx +++ b/fastdds_python/test/types/test_included_modulesPubSubTypes.cxx @@ -19,11 +19,13 @@ * This file was generated by the tool fastddsgen. */ +#include "test_included_modulesPubSubTypes.h" +#include #include -#include "test_included_modulesPubSubTypes.h" #include "test_included_modulesCdrAux.hpp" +#include "test_included_modulesTypeObjectSupport.hpp" using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; @@ -31,8 +33,6 @@ using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; namespace eprosima { namespace test2 { - - StructType2PubSubType::StructType2PubSubType() { setName("eprosima::test2::StructType2"); @@ -221,9 +221,15 @@ namespace eprosima { return true; } + void StructType2PubSubType::register_type_object_representation() const + { + register_test_included_modules_type_objects(); + } - } //End of namespace test2 + } // namespace test2 +} // namespace eprosima -} //End of namespace eprosima +// Include auxiliary functions like for serializing/deserializing. +#include "test_included_modulesCdrAux.ipp" diff --git a/fastdds_python/test/types/test_included_modulesPubSubTypes.h b/fastdds_python/test/types/test_included_modulesPubSubTypes.h index 83b199b6..9c716c3e 100644 --- a/fastdds_python/test/types/test_included_modulesPubSubTypes.h +++ b/fastdds_python/test/types/test_included_modulesPubSubTypes.h @@ -29,7 +29,7 @@ #include #include -#include "test_included_modules.h" +#include "test_included_modules.hpp" #if !defined(GEN_API_VER) || (GEN_API_VER != 2) @@ -42,8 +42,6 @@ namespace eprosima namespace test2 { - - /*! * @brief This class represents the TopicDataType of the type StructType2 defined by the user in the IDL file. * @ingroup test_included_modules @@ -94,6 +92,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 { @@ -131,8 +132,8 @@ namespace eprosima unsigned char* m_keyBuffer; }; - } -} + } // namespace test2 +} // namespace eprosima #endif // _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_PUBSUBTYPES_H_ diff --git a/fastdds_python/test/types/test_included_modulesTypeObjectSupport.cxx b/fastdds_python/test/types/test_included_modulesTypeObjectSupport.cxx new file mode 100644 index 00000000..8cd2b55a --- /dev/null +++ b/fastdds_python/test/types/test_included_modulesTypeObjectSupport.cxx @@ -0,0 +1,1168 @@ +// 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 test_included_modulesTypeObjectSupport.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 "test_included_modulesTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "test_included_modules.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_test_included_modules_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + eprosima::test2::register_eprosima_test2_StructType2_type_identifier(); + + }); +} + +namespace eprosima { +namespace test2 { +void register_eprosima_test2_StructType2_type_identifier() +{ + { + StructTypeFlag struct_flags_StructType2 = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType2; + TypeIdentifierPair type_ids_StructType2; + QualifiedTypeName type_name_StructType2 = "eprosima::test2::StructType2"; + eprosima::fastcdr::optional type_ann_builtin_StructType2; + eprosima::fastcdr::optional ann_custom_StructType2; + CompleteTypeDetail detail_StructType2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType2, ann_custom_StructType2, type_name_StructType2.to_string()); + CompleteStructHeader header_StructType2; + header_StructType2 = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType2); + CompleteStructMemberSeq member_seq_StructType2; + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType2); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_char_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType2); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint8_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType2); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType2); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint16_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType2); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType2); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint32_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType2); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_int64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType2); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_uint64_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType2); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_float_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType2); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_double_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType2); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_bool_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + + if (return_code_StructType2 != 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_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType2); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_string_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color2 = 0; + BitBound bit_bound_Color2 = 32; + CommonEnumeratedHeader common_Color2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color2); + QualifiedTypeName type_name_Color2 = "eprosima::test2::Color2"; + eprosima::fastcdr::optional type_ann_builtin_Color2; + eprosima::fastcdr::optional ann_custom_Color2; + CompleteTypeDetail detail_Color2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color2, ann_custom_Color2, type_name_Color2.to_string()); + CompleteEnumeratedHeader header_Color2 = TypeObjectUtils::build_complete_enumerated_header(common_Color2, detail_Color2); + CompleteEnumeratedLiteralSeq literal_seq_Color2; + { + EnumeratedLiteralFlag flags_RED2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED2); + eprosima::fastcdr::optional member_ann_builtin_RED2; + ann_custom_Color2.reset(); + MemberName name_RED2 = "RED2"; + CompleteMemberDetail detail_RED2 = TypeObjectUtils::build_complete_member_detail(name_RED2, member_ann_builtin_RED2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_RED2 = TypeObjectUtils::build_complete_enumerated_literal(common_RED2, detail_RED2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_RED2); + } + { + EnumeratedLiteralFlag flags_GREEN2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN2); + eprosima::fastcdr::optional member_ann_builtin_GREEN2; + ann_custom_Color2.reset(); + MemberName name_GREEN2 = "GREEN2"; + CompleteMemberDetail detail_GREEN2 = TypeObjectUtils::build_complete_member_detail(name_GREEN2, member_ann_builtin_GREEN2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_GREEN2 = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN2, detail_GREEN2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_GREEN2); + } + { + EnumeratedLiteralFlag flags_BLUE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE2); + eprosima::fastcdr::optional member_ann_builtin_BLUE2; + ann_custom_Color2.reset(); + MemberName name_BLUE2 = "BLUE2"; + CompleteMemberDetail detail_BLUE2 = TypeObjectUtils::build_complete_member_detail(name_BLUE2, member_ann_builtin_BLUE2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_BLUE2 = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE2, detail_BLUE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_BLUE2); + } + { + EnumeratedLiteralFlag flags_YELLOW2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW2); + eprosima::fastcdr::optional member_ann_builtin_YELLOW2; + ann_custom_Color2.reset(); + MemberName name_YELLOW2 = "YELLOW2"; + CompleteMemberDetail detail_YELLOW2 = TypeObjectUtils::build_complete_member_detail(name_YELLOW2, member_ann_builtin_YELLOW2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_YELLOW2 = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW2, detail_YELLOW2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_YELLOW2); + } + { + EnumeratedLiteralFlag flags_MAGENTA2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA2); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA2; + ann_custom_Color2.reset(); + MemberName name_MAGENTA2 = "MAGENTA2"; + CompleteMemberDetail detail_MAGENTA2 = TypeObjectUtils::build_complete_member_detail(name_MAGENTA2, member_ann_builtin_MAGENTA2, ann_custom_Color2); + CompleteEnumeratedLiteral literal_MAGENTA2 = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA2, detail_MAGENTA2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color2, literal_MAGENTA2); + } + CompleteEnumeratedType enumerated_type_Color2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color2, header_Color2, + literal_seq_Color2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color2, type_name_Color2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Color2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Color2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType2); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum_field); + } + { + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material2 = 0; + BitBound bit_bound_Material2 = 32; + CommonEnumeratedHeader common_Material2 = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material2); + QualifiedTypeName type_name_Material2 = "eprosima::test2::Material2"; + eprosima::fastcdr::optional type_ann_builtin_Material2; + eprosima::fastcdr::optional ann_custom_Material2; + CompleteTypeDetail detail_Material2 = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material2, ann_custom_Material2, type_name_Material2.to_string()); + CompleteEnumeratedHeader header_Material2 = TypeObjectUtils::build_complete_enumerated_header(common_Material2, detail_Material2); + CompleteEnumeratedLiteralSeq literal_seq_Material2; + { + EnumeratedLiteralFlag flags_WOOD2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD2 = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD2); + eprosima::fastcdr::optional member_ann_builtin_WOOD2; + ann_custom_Material2.reset(); + MemberName name_WOOD2 = "WOOD2"; + CompleteMemberDetail detail_WOOD2 = TypeObjectUtils::build_complete_member_detail(name_WOOD2, member_ann_builtin_WOOD2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_WOOD2 = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD2, detail_WOOD2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_WOOD2); + } + { + EnumeratedLiteralFlag flags_PLASTIC2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC2 = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC2); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC2; + ann_custom_Material2.reset(); + MemberName name_PLASTIC2 = "PLASTIC2"; + CompleteMemberDetail detail_PLASTIC2 = TypeObjectUtils::build_complete_member_detail(name_PLASTIC2, member_ann_builtin_PLASTIC2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_PLASTIC2 = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC2, detail_PLASTIC2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_PLASTIC2); + } + { + EnumeratedLiteralFlag flags_METAL2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL2 = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL2); + eprosima::fastcdr::optional member_ann_builtin_METAL2; + ann_custom_Material2.reset(); + MemberName name_METAL2 = "METAL2"; + CompleteMemberDetail detail_METAL2 = TypeObjectUtils::build_complete_member_detail(name_METAL2, member_ann_builtin_METAL2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_METAL2 = TypeObjectUtils::build_complete_enumerated_literal(common_METAL2, detail_METAL2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_METAL2); + } + { + EnumeratedLiteralFlag flags_CONCRETE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE2 = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE2); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE2; + ann_custom_Material2.reset(); + MemberName name_CONCRETE2 = "CONCRETE2"; + CompleteMemberDetail detail_CONCRETE2 = TypeObjectUtils::build_complete_member_detail(name_CONCRETE2, member_ann_builtin_CONCRETE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_CONCRETE2 = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE2, detail_CONCRETE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_CONCRETE2); + } + { + EnumeratedLiteralFlag flags_STONE2 = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE2 = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE2); + eprosima::fastcdr::optional member_ann_builtin_STONE2; + ann_custom_Material2.reset(); + MemberName name_STONE2 = "STONE2"; + CompleteMemberDetail detail_STONE2 = TypeObjectUtils::build_complete_member_detail(name_STONE2, member_ann_builtin_STONE2, ann_custom_Material2); + CompleteEnumeratedLiteral literal_STONE2 = TypeObjectUtils::build_complete_enumerated_literal(common_STONE2, detail_STONE2); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material2, literal_STONE2); + } + CompleteEnumeratedType enumerated_type_Material2 = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material2, header_Material2, + literal_seq_Material2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material2, type_name_Material2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::Material2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::Material2: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType2.type_identifier1()._d() || TK_NONE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType2.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType2.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType2.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType2.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType2.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType2.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType2.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType2); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType2, member_enum2_field); + } + CompleteStructType struct_type_StructType2 = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType2, header_StructType2, member_seq_StructType2); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType2, type_name_StructType2.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2 already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType2 = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test2::StructType2", type_ids_StructType2); + if (return_code_StructType2 != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test2::StructType2: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + +} // namespace test2 + +} // namespace eprosima + diff --git a/fastdds_python/test/types/test_included_modulesTypeObjectSupport.hpp b/fastdds_python/test/types/test_included_modulesTypeObjectSupport.hpp new file mode 100644 index 00000000..02d129e3 --- /dev/null +++ b/fastdds_python/test/types/test_included_modulesTypeObjectSupport.hpp @@ -0,0 +1,60 @@ +// 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 test_included_modulesTypeObjectSupport.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_TEST2_TEST_INCLUDED_MODULES_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_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_test_included_modules_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +namespace eprosima { +namespace test2 { +/** + * @brief Register eprosima_test2_StructType2 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. + */ +eProsima_user_DllExport void register_eprosima_test2_StructType2_type_identifier(); + +} // namespace test2 + +} // namespace eprosima + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/fastdds_python/test/types/test_included_modulesv1.cxx b/fastdds_python/test/types/test_included_modulesv1.cxx deleted file mode 100644 index 58c44802..00000000 --- a/fastdds_python/test/types/test_included_modulesv1.cxx +++ /dev/null @@ -1,941 +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 test_included_modules.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 "test_included_modules.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 eprosima_test2_StructType2_max_cdr_typesize 328ULL; - - - -namespace eprosima { - -namespace test2 { - - - -StructType2::StructType2() -{ - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // eprosima::test2::Color2 m_enum_field - m_enum_field = eprosima::test2::RED2; - // eprosima::test2::Material2 m_enum2_field - m_enum2_field = eprosima::test2::WOOD2; - -} - -StructType2::~StructType2() -{ -} - -StructType2::StructType2( - const StructType2& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - -} - -StructType2::StructType2( - StructType2&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - -} - -StructType2& StructType2::operator =( - const StructType2& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - return *this; -} - -StructType2& StructType2::operator =( - StructType2&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - return *this; -} - -bool StructType2::operator ==( - const StructType2& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field); -} - -bool StructType2::operator !=( - const StructType2& x) const -{ - return !(*this == x); -} - -size_t StructType2::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return eprosima_test2_StructType2_max_cdr_typesize; -} - -size_t StructType2::getCdrSerializedSize( - const StructType2& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - return current_alignment - initial_alignment; -} - - -void StructType2::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - -} - -void StructType2::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (eprosima::test2::Color2)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (eprosima::test2::Material2)enum_value; - } - - -} - - -bool StructType2::isKeyDefined() -{ - return false; -} - -void StructType2::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType2::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType2::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType2::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType2::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType2::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType2::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType2::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType2::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType2::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType2::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType2::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType2::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType2::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType2::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType2::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType2::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType2::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType2::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType2::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType2::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType2::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType2::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType2::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType2::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType2::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType2::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType2::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType2::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType2::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType2::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType2::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType2::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType2::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType2::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType2::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType2::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType2::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType2::enum_field( - eprosima::test2::Color2 _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test2::Color2 StructType2::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test2::Color2& StructType2::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType2::enum2_field( - eprosima::test2::Material2 _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test2::Material2 StructType2::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test2::Material2& StructType2::enum2_field() -{ - return m_enum2_field; -} - - - - - -} // namespace test2 - - -} // namespace eprosima - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python/test/types/test_included_modulesv1.h b/fastdds_python/test/types/test_included_modulesv1.h deleted file mode 100644 index de5eb0f8..00000000 --- a/fastdds_python/test/types/test_included_modulesv1.h +++ /dev/null @@ -1,524 +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 test_included_modules.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_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_H_ -#define _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_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(TEST_INCLUDED_MODULES_SOURCE) -#define TEST_INCLUDED_MODULES_DllAPI __declspec( dllexport ) -#else -#define TEST_INCLUDED_MODULES_DllAPI __declspec( dllimport ) -#endif // TEST_INCLUDED_MODULES_SOURCE -#else -#define TEST_INCLUDED_MODULES_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define TEST_INCLUDED_MODULES_DllAPI -#endif // _WIN32 - -namespace eprosima { -namespace fastcdr { -class Cdr; -} // namespace fastcdr -} // namespace eprosima - - - -namespace eprosima { - namespace test2 { - /*! - * @brief This class represents the enumeration Color2 defined by the user in the IDL file. - * @ingroup test_included_modules - */ - enum Color2 : uint32_t - { - RED2, - GREEN2, - BLUE2, - YELLOW2, - MAGENTA2 - }; - /*! - * @brief This class represents the enumeration Material2 defined by the user in the IDL file. - * @ingroup test_included_modules - */ - enum Material2 : uint32_t - { - WOOD2, - PLASTIC2, - METAL2, - CONCRETE2, - STONE2 - }; - - - /*! - * @brief This class represents the structure StructType2 defined by the user in the IDL file. - * @ingroup test_included_modules - */ - class StructType2 - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport StructType2(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~StructType2(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. - */ - eProsima_user_DllExport StructType2( - const StructType2& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. - */ - eProsima_user_DllExport StructType2( - StructType2&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. - */ - eProsima_user_DllExport StructType2& operator =( - const StructType2& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::test2::StructType2 that will be copied. - */ - eProsima_user_DllExport StructType2& operator =( - StructType2&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::test2::StructType2 object to compare. - */ - eProsima_user_DllExport bool operator ==( - const StructType2& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::test2::StructType2 object to compare. - */ - eProsima_user_DllExport bool operator !=( - const StructType2& x) const; - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - eprosima::test2::Color2 _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport eprosima::test2::Color2 enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport eprosima::test2::Color2& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - eprosima::test2::Material2 _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport eprosima::test2::Material2 enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport eprosima::test2::Material2& enum2_field(); - - - /*! - * @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 eprosima::test2::StructType2& 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: - - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - eprosima::test2::Color2 m_enum_field; - eprosima::test2::Material2 m_enum2_field; - - }; - - } // namespace test2 -} // namespace eprosima - -#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST2_TEST_INCLUDED_MODULES_H_ - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python/test/types/test_modules.cxx b/fastdds_python/test/types/test_modules.cxx deleted file mode 100644 index 1f07eea0..00000000 --- a/fastdds_python/test/types/test_modules.cxx +++ /dev/null @@ -1,6792 +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 test_modules.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 "test_modules.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - - -namespace eprosima { - -namespace test { - - - -StructType::StructType() -{ -} - -StructType::~StructType() -{ -} - -StructType::StructType( - const StructType& x) -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; -} - -StructType::StructType( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; -} - -StructType& StructType::operator =( - const StructType& x) -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - return *this; -} - -StructType& StructType::operator =( - StructType&& x) noexcept -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - return *this; -} - -bool StructType::operator ==( - const StructType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field); -} - -bool StructType::operator !=( - const StructType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color StructType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& StructType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material StructType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& StructType::enum2_field() -{ - return m_enum2_field; -} - - - - - - - - -CompleteTestType::CompleteTestType() -{ -} - -CompleteTestType::~CompleteTestType() -{ -} - -CompleteTestType::CompleteTestType( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; -} - -CompleteTestType::CompleteTestType( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); -} - -CompleteTestType& CompleteTestType::operator =( - const CompleteTestType& x) -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - return *this; -} - -CompleteTestType& CompleteTestType::operator =( - CompleteTestType&& x) noexcept -{ - - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - return *this; -} - -bool CompleteTestType::operator ==( - const CompleteTestType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool CompleteTestType::operator !=( - const CompleteTestType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void CompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char CompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& CompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void CompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t CompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& CompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void CompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t CompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& CompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void CompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t CompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& CompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void CompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t CompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& CompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void CompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t CompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& CompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void CompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t CompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& CompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void CompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t CompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& CompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void CompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float CompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& CompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void CompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double CompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& CompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void CompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool CompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& CompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void CompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void CompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& CompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& CompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void CompleteTestType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color CompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& CompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void CompleteTestType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material CompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& CompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void CompleteTestType::struct_field( - const eprosima::test::StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void CompleteTestType::struct_field( - eprosima::test::StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const eprosima::test::StructType& CompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -eprosima::test::StructType& CompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function copies the value in member char_opt_field - * @param _char_opt_field New value to be copied in member char_opt_field - */ -void CompleteTestType::char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function moves the value in member char_opt_field - * @param _char_opt_field New value to be moved in member char_opt_field - */ -void CompleteTestType::char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field) -{ - m_char_opt_field = std::move(_char_opt_field); -} - -/*! - * @brief This function returns a constant reference to member char_opt_field - * @return Constant reference to member char_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function copies the value in member uint8_opt_field - * @param _uint8_opt_field New value to be copied in member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function moves the value in member uint8_opt_field - * @param _uint8_opt_field New value to be moved in member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field) -{ - m_uint8_opt_field = std::move(_uint8_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint8_opt_field - * @return Constant reference to member uint8_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function copies the value in member int16_opt_field - * @param _int16_opt_field New value to be copied in member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function moves the value in member int16_opt_field - * @param _int16_opt_field New value to be moved in member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field) -{ - m_int16_opt_field = std::move(_int16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int16_opt_field - * @return Constant reference to member int16_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function copies the value in member uint16_opt_field - * @param _uint16_opt_field New value to be copied in member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function moves the value in member uint16_opt_field - * @param _uint16_opt_field New value to be moved in member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field) -{ - m_uint16_opt_field = std::move(_uint16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint16_opt_field - * @return Constant reference to member uint16_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function copies the value in member int32_opt_field - * @param _int32_opt_field New value to be copied in member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function moves the value in member int32_opt_field - * @param _int32_opt_field New value to be moved in member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field) -{ - m_int32_opt_field = std::move(_int32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int32_opt_field - * @return Constant reference to member int32_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function copies the value in member uint32_opt_field - * @param _uint32_opt_field New value to be copied in member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function moves the value in member uint32_opt_field - * @param _uint32_opt_field New value to be moved in member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field) -{ - m_uint32_opt_field = std::move(_uint32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint32_opt_field - * @return Constant reference to member uint32_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function copies the value in member int64_opt_field - * @param _int64_opt_field New value to be copied in member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function moves the value in member int64_opt_field - * @param _int64_opt_field New value to be moved in member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field) -{ - m_int64_opt_field = std::move(_int64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int64_opt_field - * @return Constant reference to member int64_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function copies the value in member uint64_opt_field - * @param _uint64_opt_field New value to be copied in member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function moves the value in member uint64_opt_field - * @param _uint64_opt_field New value to be moved in member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field) -{ - m_uint64_opt_field = std::move(_uint64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint64_opt_field - * @return Constant reference to member uint64_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function copies the value in member float_opt_field - * @param _float_opt_field New value to be copied in member float_opt_field - */ -void CompleteTestType::float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function moves the value in member float_opt_field - * @param _float_opt_field New value to be moved in member float_opt_field - */ -void CompleteTestType::float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field) -{ - m_float_opt_field = std::move(_float_opt_field); -} - -/*! - * @brief This function returns a constant reference to member float_opt_field - * @return Constant reference to member float_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function copies the value in member double_opt_field - * @param _double_opt_field New value to be copied in member double_opt_field - */ -void CompleteTestType::double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function moves the value in member double_opt_field - * @param _double_opt_field New value to be moved in member double_opt_field - */ -void CompleteTestType::double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field) -{ - m_double_opt_field = std::move(_double_opt_field); -} - -/*! - * @brief This function returns a constant reference to member double_opt_field - * @return Constant reference to member double_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function copies the value in member bool_opt_field - * @param _bool_opt_field New value to be copied in member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function moves the value in member bool_opt_field - * @param _bool_opt_field New value to be moved in member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field) -{ - m_bool_opt_field = std::move(_bool_opt_field); -} - -/*! - * @brief This function returns a constant reference to member bool_opt_field - * @return Constant reference to member bool_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void CompleteTestType::string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void CompleteTestType::string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function copies the value in member enum_opt_field - * @param _enum_opt_field New value to be copied in member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function moves the value in member enum_opt_field - * @param _enum_opt_field New value to be moved in member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field) -{ - m_enum_opt_field = std::move(_enum_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum_opt_field - * @return Constant reference to member enum_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function copies the value in member enum2_opt_field - * @param _enum2_opt_field New value to be copied in member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function moves the value in member enum2_opt_field - * @param _enum2_opt_field New value to be moved in member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field) -{ - m_enum2_opt_field = std::move(_enum2_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum2_opt_field - * @return Constant reference to member enum2_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::fastcdr::optional& CompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void CompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void CompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& CompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& CompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& CompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& CompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& CompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& CompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& CompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& CompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& CompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& CompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& CompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& CompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& CompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& CompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& CompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& CompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void CompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void CompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& CompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& CompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void CompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void CompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& CompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& CompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& CompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& CompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& CompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& CompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& CompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& CompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& CompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& CompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& CompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& CompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& CompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& CompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& CompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& CompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& CompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& CompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& CompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& CompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& CompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& CompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& CompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& CompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& CompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& CompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& CompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& CompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& CompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& CompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& CompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& CompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& CompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& CompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& CompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& CompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& CompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& CompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& CompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& CompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& CompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& CompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& CompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& CompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& CompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - - - -KeyedCompleteTestType::KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::~KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; -} - -KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) -{ - - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = x.m_string_field; - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = x.m_struct_field; - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = x.m_string_opt_field; - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = x.m_struct_opt_field; - m_array_char_field = x.m_array_char_field; - m_array_uint8_field = x.m_array_uint8_field; - m_array_int16_field = x.m_array_int16_field; - m_array_uint16_field = x.m_array_uint16_field; - m_array_int32_field = x.m_array_int32_field; - m_array_uint32_field = x.m_array_uint32_field; - m_array_int64_field = x.m_array_int64_field; - m_array_uint64_field = x.m_array_uint64_field; - m_array_float_field = x.m_array_float_field; - m_array_double_field = x.m_array_double_field; - m_array_bool_field = x.m_array_bool_field; - m_array_enum_field = x.m_array_enum_field; - m_array_enum2_field = x.m_array_enum2_field; - m_array_struct_field = x.m_array_struct_field; - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - return *this; -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept -{ - - m_id = x.m_id; - m_char_field = x.m_char_field; - m_uint8_field = x.m_uint8_field; - m_int16_field = x.m_int16_field; - m_uint16_field = x.m_uint16_field; - m_int32_field = x.m_int32_field; - m_uint32_field = x.m_uint32_field; - m_int64_field = x.m_int64_field; - m_uint64_field = x.m_uint64_field; - m_float_field = x.m_float_field; - m_double_field = x.m_double_field; - m_bool_field = x.m_bool_field; - m_string_field = std::move(x.m_string_field); - m_enum_field = x.m_enum_field; - m_enum2_field = x.m_enum2_field; - m_struct_field = std::move(x.m_struct_field); - m_char_opt_field = x.m_char_opt_field; - m_uint8_opt_field = x.m_uint8_opt_field; - m_int16_opt_field = x.m_int16_opt_field; - m_uint16_opt_field = x.m_uint16_opt_field; - m_int32_opt_field = x.m_int32_opt_field; - m_uint32_opt_field = x.m_uint32_opt_field; - m_int64_opt_field = x.m_int64_opt_field; - m_uint64_opt_field = x.m_uint64_opt_field; - m_float_opt_field = x.m_float_opt_field; - m_double_opt_field = x.m_double_opt_field; - m_bool_opt_field = x.m_bool_opt_field; - m_string_opt_field = std::move(x.m_string_opt_field); - m_enum_opt_field = x.m_enum_opt_field; - m_enum2_opt_field = x.m_enum2_opt_field; - m_struct_opt_field = std::move(x.m_struct_opt_field); - m_array_char_field = std::move(x.m_array_char_field); - m_array_uint8_field = std::move(x.m_array_uint8_field); - m_array_int16_field = std::move(x.m_array_int16_field); - m_array_uint16_field = std::move(x.m_array_uint16_field); - m_array_int32_field = std::move(x.m_array_int32_field); - m_array_uint32_field = std::move(x.m_array_uint32_field); - m_array_int64_field = std::move(x.m_array_int64_field); - m_array_uint64_field = std::move(x.m_array_uint64_field); - m_array_float_field = std::move(x.m_array_float_field); - m_array_double_field = std::move(x.m_array_double_field); - m_array_bool_field = std::move(x.m_array_bool_field); - m_array_enum_field = std::move(x.m_array_enum_field); - m_array_enum2_field = std::move(x.m_array_enum2_field); - m_array_struct_field = std::move(x.m_array_struct_field); - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - return *this; -} - -bool KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const -{ - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ -void KeyedCompleteTestType::id( - int32_t _id) -{ - m_id = _id; -} - -/*! - * @brief This function returns the value of member id - * @return Value of member id - */ -int32_t KeyedCompleteTestType::id() const -{ - return m_id; -} - -/*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ -int32_t& KeyedCompleteTestType::id() -{ - return m_id; -} - - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void KeyedCompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char KeyedCompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& KeyedCompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t KeyedCompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& KeyedCompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void KeyedCompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t KeyedCompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& KeyedCompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t KeyedCompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& KeyedCompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void KeyedCompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t KeyedCompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& KeyedCompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t KeyedCompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& KeyedCompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void KeyedCompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t KeyedCompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& KeyedCompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t KeyedCompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& KeyedCompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void KeyedCompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float KeyedCompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& KeyedCompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void KeyedCompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double KeyedCompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& KeyedCompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void KeyedCompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool KeyedCompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& KeyedCompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void KeyedCompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void KeyedCompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& KeyedCompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& KeyedCompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void KeyedCompleteTestType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color KeyedCompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& KeyedCompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void KeyedCompleteTestType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material KeyedCompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& KeyedCompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void KeyedCompleteTestType::struct_field( - const eprosima::test::StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void KeyedCompleteTestType::struct_field( - eprosima::test::StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const eprosima::test::StructType& KeyedCompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -eprosima::test::StructType& KeyedCompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function copies the value in member char_opt_field - * @param _char_opt_field New value to be copied in member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function moves the value in member char_opt_field - * @param _char_opt_field New value to be moved in member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field) -{ - m_char_opt_field = std::move(_char_opt_field); -} - -/*! - * @brief This function returns a constant reference to member char_opt_field - * @return Constant reference to member char_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function copies the value in member uint8_opt_field - * @param _uint8_opt_field New value to be copied in member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function moves the value in member uint8_opt_field - * @param _uint8_opt_field New value to be moved in member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field) -{ - m_uint8_opt_field = std::move(_uint8_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint8_opt_field - * @return Constant reference to member uint8_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function copies the value in member int16_opt_field - * @param _int16_opt_field New value to be copied in member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function moves the value in member int16_opt_field - * @param _int16_opt_field New value to be moved in member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field) -{ - m_int16_opt_field = std::move(_int16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int16_opt_field - * @return Constant reference to member int16_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function copies the value in member uint16_opt_field - * @param _uint16_opt_field New value to be copied in member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function moves the value in member uint16_opt_field - * @param _uint16_opt_field New value to be moved in member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field) -{ - m_uint16_opt_field = std::move(_uint16_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint16_opt_field - * @return Constant reference to member uint16_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function copies the value in member int32_opt_field - * @param _int32_opt_field New value to be copied in member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function moves the value in member int32_opt_field - * @param _int32_opt_field New value to be moved in member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field) -{ - m_int32_opt_field = std::move(_int32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int32_opt_field - * @return Constant reference to member int32_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function copies the value in member uint32_opt_field - * @param _uint32_opt_field New value to be copied in member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function moves the value in member uint32_opt_field - * @param _uint32_opt_field New value to be moved in member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field) -{ - m_uint32_opt_field = std::move(_uint32_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint32_opt_field - * @return Constant reference to member uint32_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function copies the value in member int64_opt_field - * @param _int64_opt_field New value to be copied in member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function moves the value in member int64_opt_field - * @param _int64_opt_field New value to be moved in member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field) -{ - m_int64_opt_field = std::move(_int64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member int64_opt_field - * @return Constant reference to member int64_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function copies the value in member uint64_opt_field - * @param _uint64_opt_field New value to be copied in member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function moves the value in member uint64_opt_field - * @param _uint64_opt_field New value to be moved in member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field) -{ - m_uint64_opt_field = std::move(_uint64_opt_field); -} - -/*! - * @brief This function returns a constant reference to member uint64_opt_field - * @return Constant reference to member uint64_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function copies the value in member float_opt_field - * @param _float_opt_field New value to be copied in member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function moves the value in member float_opt_field - * @param _float_opt_field New value to be moved in member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field) -{ - m_float_opt_field = std::move(_float_opt_field); -} - -/*! - * @brief This function returns a constant reference to member float_opt_field - * @return Constant reference to member float_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function copies the value in member double_opt_field - * @param _double_opt_field New value to be copied in member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function moves the value in member double_opt_field - * @param _double_opt_field New value to be moved in member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field) -{ - m_double_opt_field = std::move(_double_opt_field); -} - -/*! - * @brief This function returns a constant reference to member double_opt_field - * @return Constant reference to member double_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function copies the value in member bool_opt_field - * @param _bool_opt_field New value to be copied in member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function moves the value in member bool_opt_field - * @param _bool_opt_field New value to be moved in member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field) -{ - m_bool_opt_field = std::move(_bool_opt_field); -} - -/*! - * @brief This function returns a constant reference to member bool_opt_field - * @return Constant reference to member bool_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function copies the value in member enum_opt_field - * @param _enum_opt_field New value to be copied in member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function moves the value in member enum_opt_field - * @param _enum_opt_field New value to be moved in member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field) -{ - m_enum_opt_field = std::move(_enum_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum_opt_field - * @return Constant reference to member enum_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function copies the value in member enum2_opt_field - * @param _enum2_opt_field New value to be copied in member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function moves the value in member enum2_opt_field - * @param _enum2_opt_field New value to be moved in member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field) -{ - m_enum2_opt_field = std::move(_enum2_opt_field); -} - -/*! - * @brief This function returns a constant reference to member enum2_opt_field - * @return Constant reference to member enum2_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::fastcdr::optional& KeyedCompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& KeyedCompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& KeyedCompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& KeyedCompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& KeyedCompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& KeyedCompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& KeyedCompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& KeyedCompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& KeyedCompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& KeyedCompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& KeyedCompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& KeyedCompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& KeyedCompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& KeyedCompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& KeyedCompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& KeyedCompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& KeyedCompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& KeyedCompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& KeyedCompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& KeyedCompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& KeyedCompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& KeyedCompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& KeyedCompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& KeyedCompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& KeyedCompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& KeyedCompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& KeyedCompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& KeyedCompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& KeyedCompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - -} // namespace test - - -} // namespace eprosima -// Include auxiliary functions like for serializing/deserializing. -#include "test_modulesCdrAux.ipp" - -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_modules.h b/fastdds_python/test/types/test_modules.hpp similarity index 56% rename from fastdds_python/test/types/test_modules.h rename to fastdds_python/test/types/test_modules.hpp index a74ede6d..a132cd9f 100644 --- a/fastdds_python/test/types/test_modules.h +++ b/fastdds_python/test/types/test_modules.hpp @@ -13,33 +13,24 @@ // limitations under the License. /*! - * @file test_modules.h + * @file test_modules.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 "test_modulesv1.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_H_ -#define _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_H_ +#ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_HPP_ +#define _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_HPP_ #include -#include #include -#include #include +#include #include #include -#include #include - - #if defined(_WIN32) #if defined(EPROSIMA_USER_DLL_EXPORT) #define eProsima_user_DllExport __declspec( dllexport ) @@ -64,15 +55,6 @@ #define TEST_MODULES_DllAPI #endif // _WIN32 -namespace eprosima { -namespace fastcdr { -class Cdr; -class CdrSizeCalculator; -} // namespace fastcdr -} // namespace eprosima - - - namespace eprosima { namespace test { @@ -81,7 +63,7 @@ namespace test { * @brief This class represents the enumeration Color defined by the user in the IDL file. * @ingroup test_modules */ -enum Color : uint32_t +enum class Color : uint32_t { RED, GREEN, @@ -93,7 +75,7 @@ enum Color : uint32_t * @brief This class represents the enumeration Material defined by the user in the IDL file. * @ingroup test_modules */ -enum Material : uint32_t +enum class Material : uint32_t { WOOD, PLASTIC, @@ -101,8 +83,6 @@ enum Material : uint32_t CONCRETE, STONE }; - - /*! * @brief This class represents the structure StructType defined by the user in the IDL file. * @ingroup test_modules @@ -114,73 +94,201 @@ class StructType /*! * @brief Default constructor. */ - eProsima_user_DllExport StructType(); + eProsima_user_DllExport StructType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~StructType(); + eProsima_user_DllExport ~StructType() + { + } /*! * @brief Copy constructor. - * @param x Reference to the object eprosima::test::StructType that will be copied. + * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType( - const StructType& x); + const StructType& x) + { + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + } /*! * @brief Move constructor. - * @param x Reference to the object eprosima::test::StructType that will be copied. + * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType( - StructType&& x) noexcept; + StructType&& x) noexcept + { + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + } /*! * @brief Copy assignment. - * @param x Reference to the object eprosima::test::StructType that will be copied. + * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType& operator =( - const StructType& x); + const StructType& x) + { + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + return *this; + } /*! * @brief Move assignment. - * @param x Reference to the object eprosima::test::StructType that will be copied. + * @param x Reference to the object StructType that will be copied. */ eProsima_user_DllExport StructType& operator =( - StructType&& x) noexcept; + StructType&& x) noexcept + { + + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + return *this; + } /*! * @brief Comparison operator. - * @param x eprosima::test::StructType object to compare. + * @param x StructType object to compare. */ eProsima_user_DllExport bool operator ==( - const StructType& x) const; + const StructType& x) const + { + return (m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field); + } /*! * @brief Comparison operator. - * @param x eprosima::test::StructType object to compare. + * @param x StructType object to compare. */ eProsima_user_DllExport bool operator !=( - const StructType& x) const; + const StructType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member char_field * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -188,19 +296,28 @@ class StructType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -208,19 +325,28 @@ class StructType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -228,19 +354,28 @@ class StructType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -248,19 +383,28 @@ class StructType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -268,19 +412,28 @@ class StructType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -288,19 +441,28 @@ class StructType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -308,19 +470,28 @@ class StructType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -328,19 +499,28 @@ class StructType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -348,19 +528,28 @@ class StructType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -368,19 +557,28 @@ class StructType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -388,26 +586,38 @@ class StructType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -415,19 +625,28 @@ class StructType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -435,19 +654,30 @@ class StructType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } + + private: @@ -463,16 +693,12 @@ class StructType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - eprosima::test::Color m_enum_field{eprosima::test::RED}; - eprosima::test::Material m_enum2_field{eprosima::test::WOOD}; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; }; const uint32_t max_array_size = 3; const uint32_t max_seq_size = 5; - - - - /*! * @brief This class represents the structure CompleteTestType defined by the user in the IDL file. * @ingroup test_modules @@ -484,73 +710,607 @@ class CompleteTestType /*! * @brief Default constructor. */ - eProsima_user_DllExport CompleteTestType(); + eProsima_user_DllExport CompleteTestType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~CompleteTestType(); + eProsima_user_DllExport ~CompleteTestType() + { + } /*! * @brief Copy constructor. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. + * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType( - const CompleteTestType& x); + const CompleteTestType& x) + { + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + } /*! * @brief Move constructor. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. + * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType( - CompleteTestType&& x) noexcept; + CompleteTestType&& x) noexcept + { + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + } /*! * @brief Copy assignment. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. + * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType& operator =( - const CompleteTestType& x); + const CompleteTestType& x) + { + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; + } /*! * @brief Move assignment. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. + * @param x Reference to the object CompleteTestType that will be copied. */ eProsima_user_DllExport CompleteTestType& operator =( - CompleteTestType&& x) noexcept; + CompleteTestType&& x) noexcept + { + + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + return *this; + } /*! * @brief Comparison operator. - * @param x eprosima::test::CompleteTestType object to compare. + * @param x CompleteTestType object to compare. */ eProsima_user_DllExport bool operator ==( - const CompleteTestType& x) const; + const CompleteTestType& x) const + { + return (m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + } /*! * @brief Comparison operator. - * @param x eprosima::test::CompleteTestType object to compare. + * @param x CompleteTestType object to compare. */ eProsima_user_DllExport bool operator !=( - const CompleteTestType& x) const; + const CompleteTestType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member char_field * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -558,19 +1318,28 @@ class CompleteTestType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -578,19 +1347,28 @@ class CompleteTestType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -598,19 +1376,28 @@ class CompleteTestType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -618,19 +1405,28 @@ class CompleteTestType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -638,19 +1434,28 @@ class CompleteTestType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -658,19 +1463,28 @@ class CompleteTestType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -678,19 +1492,28 @@ class CompleteTestType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -698,19 +1521,28 @@ class CompleteTestType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -718,19 +1550,28 @@ class CompleteTestType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -738,19 +1579,28 @@ class CompleteTestType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -758,26 +1608,38 @@ class CompleteTestType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -785,19 +1647,28 @@ class CompleteTestType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -805,19 +1676,28 @@ class CompleteTestType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } /*! @@ -825,26 +1705,38 @@ class CompleteTestType * @param _struct_field New value to be copied in member struct_field */ eProsima_user_DllExport void struct_field( - const eprosima::test::StructType& _struct_field); + const StructType& _struct_field) + { + m_struct_field = _struct_field; + } /*! * @brief This function moves the value in member struct_field * @param _struct_field New value to be moved in member struct_field */ eProsima_user_DllExport void struct_field( - eprosima::test::StructType&& _struct_field); + StructType&& _struct_field) + { + m_struct_field = std::move(_struct_field); + } /*! * @brief This function returns a constant reference to member struct_field * @return Constant reference to member struct_field */ - eProsima_user_DllExport const eprosima::test::StructType& struct_field() const; + eProsima_user_DllExport const StructType& struct_field() const + { + return m_struct_field; + } /*! * @brief This function returns a reference to member struct_field * @return Reference to member struct_field */ - eProsima_user_DllExport eprosima::test::StructType& struct_field(); + eProsima_user_DllExport StructType& struct_field() + { + return m_struct_field; + } /*! @@ -852,26 +1744,38 @@ class CompleteTestType * @param _char_opt_field New value to be copied in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field); + const eprosima::fastcdr::optional& _char_opt_field) + { + m_char_opt_field = _char_opt_field; + } /*! * @brief This function moves the value in member char_opt_field * @param _char_opt_field New value to be moved in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field); + eprosima::fastcdr::optional&& _char_opt_field) + { + m_char_opt_field = std::move(_char_opt_field); + } /*! * @brief This function returns a constant reference to member char_opt_field * @return Constant reference to member char_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const + { + return m_char_opt_field; + } /*! * @brief This function returns a reference to member char_opt_field * @return Reference to member char_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field() + { + return m_char_opt_field; + } /*! @@ -879,26 +1783,38 @@ class CompleteTestType * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field); + const eprosima::fastcdr::optional& _uint8_opt_field) + { + m_uint8_opt_field = _uint8_opt_field; + } /*! * @brief This function moves the value in member uint8_opt_field * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field); + eprosima::fastcdr::optional&& _uint8_opt_field) + { + m_uint8_opt_field = std::move(_uint8_opt_field); + } /*! * @brief This function returns a constant reference to member uint8_opt_field * @return Constant reference to member uint8_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const + { + return m_uint8_opt_field; + } /*! * @brief This function returns a reference to member uint8_opt_field * @return Reference to member uint8_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field() + { + return m_uint8_opt_field; + } /*! @@ -906,26 +1822,38 @@ class CompleteTestType * @param _int16_opt_field New value to be copied in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field); + const eprosima::fastcdr::optional& _int16_opt_field) + { + m_int16_opt_field = _int16_opt_field; + } /*! * @brief This function moves the value in member int16_opt_field * @param _int16_opt_field New value to be moved in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field); + eprosima::fastcdr::optional&& _int16_opt_field) + { + m_int16_opt_field = std::move(_int16_opt_field); + } /*! * @brief This function returns a constant reference to member int16_opt_field * @return Constant reference to member int16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const + { + return m_int16_opt_field; + } /*! * @brief This function returns a reference to member int16_opt_field * @return Reference to member int16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field() + { + return m_int16_opt_field; + } /*! @@ -933,26 +1861,38 @@ class CompleteTestType * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field); + const eprosima::fastcdr::optional& _uint16_opt_field) + { + m_uint16_opt_field = _uint16_opt_field; + } /*! * @brief This function moves the value in member uint16_opt_field * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field); + eprosima::fastcdr::optional&& _uint16_opt_field) + { + m_uint16_opt_field = std::move(_uint16_opt_field); + } /*! * @brief This function returns a constant reference to member uint16_opt_field * @return Constant reference to member uint16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const + { + return m_uint16_opt_field; + } /*! * @brief This function returns a reference to member uint16_opt_field * @return Reference to member uint16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field() + { + return m_uint16_opt_field; + } /*! @@ -960,26 +1900,38 @@ class CompleteTestType * @param _int32_opt_field New value to be copied in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field); + const eprosima::fastcdr::optional& _int32_opt_field) + { + m_int32_opt_field = _int32_opt_field; + } /*! * @brief This function moves the value in member int32_opt_field * @param _int32_opt_field New value to be moved in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field); + eprosima::fastcdr::optional&& _int32_opt_field) + { + m_int32_opt_field = std::move(_int32_opt_field); + } /*! * @brief This function returns a constant reference to member int32_opt_field * @return Constant reference to member int32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const + { + return m_int32_opt_field; + } /*! * @brief This function returns a reference to member int32_opt_field * @return Reference to member int32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field() + { + return m_int32_opt_field; + } /*! @@ -987,26 +1939,38 @@ class CompleteTestType * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field); + const eprosima::fastcdr::optional& _uint32_opt_field) + { + m_uint32_opt_field = _uint32_opt_field; + } /*! * @brief This function moves the value in member uint32_opt_field * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field); + eprosima::fastcdr::optional&& _uint32_opt_field) + { + m_uint32_opt_field = std::move(_uint32_opt_field); + } /*! * @brief This function returns a constant reference to member uint32_opt_field * @return Constant reference to member uint32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const + { + return m_uint32_opt_field; + } /*! * @brief This function returns a reference to member uint32_opt_field * @return Reference to member uint32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field() + { + return m_uint32_opt_field; + } /*! @@ -1014,26 +1978,38 @@ class CompleteTestType * @param _int64_opt_field New value to be copied in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field); + const eprosima::fastcdr::optional& _int64_opt_field) + { + m_int64_opt_field = _int64_opt_field; + } /*! * @brief This function moves the value in member int64_opt_field * @param _int64_opt_field New value to be moved in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field); + eprosima::fastcdr::optional&& _int64_opt_field) + { + m_int64_opt_field = std::move(_int64_opt_field); + } /*! * @brief This function returns a constant reference to member int64_opt_field * @return Constant reference to member int64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const + { + return m_int64_opt_field; + } /*! * @brief This function returns a reference to member int64_opt_field * @return Reference to member int64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field() + { + return m_int64_opt_field; + } /*! @@ -1041,26 +2017,38 @@ class CompleteTestType * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field); + const eprosima::fastcdr::optional& _uint64_opt_field) + { + m_uint64_opt_field = _uint64_opt_field; + } /*! * @brief This function moves the value in member uint64_opt_field * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field); + eprosima::fastcdr::optional&& _uint64_opt_field) + { + m_uint64_opt_field = std::move(_uint64_opt_field); + } /*! * @brief This function returns a constant reference to member uint64_opt_field * @return Constant reference to member uint64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const + { + return m_uint64_opt_field; + } /*! * @brief This function returns a reference to member uint64_opt_field * @return Reference to member uint64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field() + { + return m_uint64_opt_field; + } /*! @@ -1068,26 +2056,38 @@ class CompleteTestType * @param _float_opt_field New value to be copied in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field); + const eprosima::fastcdr::optional& _float_opt_field) + { + m_float_opt_field = _float_opt_field; + } /*! * @brief This function moves the value in member float_opt_field * @param _float_opt_field New value to be moved in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field); + eprosima::fastcdr::optional&& _float_opt_field) + { + m_float_opt_field = std::move(_float_opt_field); + } /*! * @brief This function returns a constant reference to member float_opt_field * @return Constant reference to member float_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const + { + return m_float_opt_field; + } /*! * @brief This function returns a reference to member float_opt_field * @return Reference to member float_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field() + { + return m_float_opt_field; + } /*! @@ -1095,26 +2095,38 @@ class CompleteTestType * @param _double_opt_field New value to be copied in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field); + const eprosima::fastcdr::optional& _double_opt_field) + { + m_double_opt_field = _double_opt_field; + } /*! * @brief This function moves the value in member double_opt_field * @param _double_opt_field New value to be moved in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field); + eprosima::fastcdr::optional&& _double_opt_field) + { + m_double_opt_field = std::move(_double_opt_field); + } /*! * @brief This function returns a constant reference to member double_opt_field * @return Constant reference to member double_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const + { + return m_double_opt_field; + } /*! * @brief This function returns a reference to member double_opt_field * @return Reference to member double_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field() + { + return m_double_opt_field; + } /*! @@ -1122,26 +2134,38 @@ class CompleteTestType * @param _bool_opt_field New value to be copied in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field); + const eprosima::fastcdr::optional& _bool_opt_field) + { + m_bool_opt_field = _bool_opt_field; + } /*! * @brief This function moves the value in member bool_opt_field * @param _bool_opt_field New value to be moved in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field); + eprosima::fastcdr::optional&& _bool_opt_field) + { + m_bool_opt_field = std::move(_bool_opt_field); + } /*! * @brief This function returns a constant reference to member bool_opt_field * @return Constant reference to member bool_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const + { + return m_bool_opt_field; + } /*! * @brief This function returns a reference to member bool_opt_field * @return Reference to member bool_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field() + { + return m_bool_opt_field; + } /*! @@ -1149,26 +2173,38 @@ class CompleteTestType * @param _string_opt_field New value to be copied in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field); + const eprosima::fastcdr::optional& _string_opt_field) + { + m_string_opt_field = _string_opt_field; + } /*! * @brief This function moves the value in member string_opt_field * @param _string_opt_field New value to be moved in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field); + eprosima::fastcdr::optional&& _string_opt_field) + { + m_string_opt_field = std::move(_string_opt_field); + } /*! * @brief This function returns a constant reference to member string_opt_field * @return Constant reference to member string_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const + { + return m_string_opt_field; + } /*! * @brief This function returns a reference to member string_opt_field * @return Reference to member string_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field() + { + return m_string_opt_field; + } /*! @@ -1176,26 +2212,38 @@ class CompleteTestType * @param _enum_opt_field New value to be copied in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field); + const eprosima::fastcdr::optional& _enum_opt_field) + { + m_enum_opt_field = _enum_opt_field; + } /*! * @brief This function moves the value in member enum_opt_field * @param _enum_opt_field New value to be moved in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field); + eprosima::fastcdr::optional&& _enum_opt_field) + { + m_enum_opt_field = std::move(_enum_opt_field); + } /*! * @brief This function returns a constant reference to member enum_opt_field * @return Constant reference to member enum_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const + { + return m_enum_opt_field; + } /*! * @brief This function returns a reference to member enum_opt_field * @return Reference to member enum_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field() + { + return m_enum_opt_field; + } /*! @@ -1203,26 +2251,38 @@ class CompleteTestType * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field); + const eprosima::fastcdr::optional& _enum2_opt_field) + { + m_enum2_opt_field = _enum2_opt_field; + } /*! * @brief This function moves the value in member enum2_opt_field * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field); + eprosima::fastcdr::optional&& _enum2_opt_field) + { + m_enum2_opt_field = std::move(_enum2_opt_field); + } /*! * @brief This function returns a constant reference to member enum2_opt_field * @return Constant reference to member enum2_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const + { + return m_enum2_opt_field; + } /*! * @brief This function returns a reference to member enum2_opt_field * @return Reference to member enum2_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field() + { + return m_enum2_opt_field; + } /*! @@ -1230,26 +2290,38 @@ class CompleteTestType * @param _struct_opt_field New value to be copied in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field); + const eprosima::fastcdr::optional& _struct_opt_field) + { + m_struct_opt_field = _struct_opt_field; + } /*! * @brief This function moves the value in member struct_opt_field * @param _struct_opt_field New value to be moved in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field); + eprosima::fastcdr::optional&& _struct_opt_field) + { + m_struct_opt_field = std::move(_struct_opt_field); + } /*! * @brief This function returns a constant reference to member struct_opt_field * @return Constant reference to member struct_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const + { + return m_struct_opt_field; + } /*! * @brief This function returns a reference to member struct_opt_field * @return Reference to member struct_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field() + { + return m_struct_opt_field; + } /*! @@ -1257,26 +2329,38 @@ class CompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field) + { + m_array_char_field = _array_char_field; + } /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field) + { + m_array_char_field = std::move(_array_char_field); + } /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const + { + return m_array_char_field; + } /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field() + { + return m_array_char_field; + } /*! @@ -1284,26 +2368,38 @@ class CompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field) + { + m_array_uint8_field = _array_uint8_field; + } /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field) + { + m_array_uint8_field = std::move(_array_uint8_field); + } /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const + { + return m_array_uint8_field; + } /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field() + { + return m_array_uint8_field; + } /*! @@ -1311,26 +2407,38 @@ class CompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field) + { + m_array_int16_field = _array_int16_field; + } /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field) + { + m_array_int16_field = std::move(_array_int16_field); + } /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const + { + return m_array_int16_field; + } /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field() + { + return m_array_int16_field; + } /*! @@ -1338,26 +2446,38 @@ class CompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field) + { + m_array_uint16_field = _array_uint16_field; + } /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field) + { + m_array_uint16_field = std::move(_array_uint16_field); + } /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const + { + return m_array_uint16_field; + } /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field() + { + return m_array_uint16_field; + } /*! @@ -1365,26 +2485,38 @@ class CompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field) + { + m_array_int32_field = _array_int32_field; + } /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field) + { + m_array_int32_field = std::move(_array_int32_field); + } /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const + { + return m_array_int32_field; + } /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field() + { + return m_array_int32_field; + } /*! @@ -1392,26 +2524,38 @@ class CompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field) + { + m_array_uint32_field = _array_uint32_field; + } /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field) + { + m_array_uint32_field = std::move(_array_uint32_field); + } /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const + { + return m_array_uint32_field; + } /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field() + { + return m_array_uint32_field; + } /*! @@ -1419,26 +2563,38 @@ class CompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field) + { + m_array_int64_field = _array_int64_field; + } /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field) + { + m_array_int64_field = std::move(_array_int64_field); + } /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const + { + return m_array_int64_field; + } /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field() + { + return m_array_int64_field; + } /*! @@ -1446,26 +2602,38 @@ class CompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field) + { + m_array_uint64_field = _array_uint64_field; + } /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field) + { + m_array_uint64_field = std::move(_array_uint64_field); + } /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const + { + return m_array_uint64_field; + } /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field() + { + return m_array_uint64_field; + } /*! @@ -1473,26 +2641,38 @@ class CompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field) + { + m_array_float_field = _array_float_field; + } /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field) + { + m_array_float_field = std::move(_array_float_field); + } /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const + { + return m_array_float_field; + } /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field() + { + return m_array_float_field; + } /*! @@ -1500,26 +2680,38 @@ class CompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field) + { + m_array_double_field = _array_double_field; + } /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field) + { + m_array_double_field = std::move(_array_double_field); + } /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const + { + return m_array_double_field; + } /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field() + { + return m_array_double_field; + } /*! @@ -1527,26 +2719,38 @@ class CompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field) + { + m_array_bool_field = _array_bool_field; + } /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field) + { + m_array_bool_field = std::move(_array_bool_field); + } /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const + { + return m_array_bool_field; + } /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field() + { + return m_array_bool_field; + } /*! @@ -1554,26 +2758,38 @@ class CompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field) + { + m_array_enum_field = _array_enum_field; + } /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field) + { + m_array_enum_field = std::move(_array_enum_field); + } /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const + { + return m_array_enum_field; + } /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field() + { + return m_array_enum_field; + } /*! @@ -1581,26 +2797,38 @@ class CompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field) + { + m_array_enum2_field = _array_enum2_field; + } /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field) + { + m_array_enum2_field = std::move(_array_enum2_field); + } /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const + { + return m_array_enum2_field; + } /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field() + { + return m_array_enum2_field; + } /*! @@ -1608,26 +2836,38 @@ class CompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field) + { + m_array_struct_field = _array_struct_field; + } /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field) + { + m_array_struct_field = std::move(_array_struct_field); + } /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const + { + return m_array_struct_field; + } /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field() + { + return m_array_struct_field; + } /*! @@ -1635,26 +2875,38 @@ class CompleteTestType * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); + const std::vector& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = _bounded_sequence_char_field; + } /*! * @brief This function moves the value in member bounded_sequence_char_field * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); + std::vector&& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_char_field * @return Constant reference to member bounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const + { + return m_bounded_sequence_char_field; + } /*! * @brief This function returns a reference to member bounded_sequence_char_field * @return Reference to member bounded_sequence_char_field */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); + eProsima_user_DllExport std::vector& bounded_sequence_char_field() + { + return m_bounded_sequence_char_field; + } /*! @@ -1662,26 +2914,38 @@ class CompleteTestType * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); + const std::vector& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint8_field * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); + std::vector&& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint8_field * @return Constant reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const + { + return m_bounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint8_field * @return Reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint8_field() + { + return m_bounded_sequence_uint8_field; + } /*! @@ -1689,26 +2953,38 @@ class CompleteTestType * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); + const std::vector& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + } /*! * @brief This function moves the value in member bounded_sequence_int16_field * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); + std::vector&& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int16_field * @return Constant reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const + { + return m_bounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int16_field * @return Reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int16_field() + { + return m_bounded_sequence_int16_field; + } /*! @@ -1716,26 +2992,38 @@ class CompleteTestType * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); + const std::vector& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint16_field * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); + std::vector&& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint16_field * @return Constant reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const + { + return m_bounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint16_field * @return Reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint16_field() + { + return m_bounded_sequence_uint16_field; + } /*! @@ -1743,26 +3031,38 @@ class CompleteTestType * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); + const std::vector& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + } /*! * @brief This function moves the value in member bounded_sequence_int32_field * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); + std::vector&& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int32_field * @return Constant reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const + { + return m_bounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int32_field * @return Reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int32_field() + { + return m_bounded_sequence_int32_field; + } /*! @@ -1770,26 +3070,38 @@ class CompleteTestType * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); + const std::vector& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint32_field * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); + std::vector&& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint32_field * @return Constant reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const + { + return m_bounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint32_field * @return Reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint32_field() + { + return m_bounded_sequence_uint32_field; + } /*! @@ -1797,26 +3109,38 @@ class CompleteTestType * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); + const std::vector& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + } /*! * @brief This function moves the value in member bounded_sequence_int64_field * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); + std::vector&& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int64_field * @return Constant reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const + { + return m_bounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int64_field * @return Reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int64_field() + { + return m_bounded_sequence_int64_field; + } /*! @@ -1824,26 +3148,38 @@ class CompleteTestType * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); + const std::vector& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint64_field * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); + std::vector&& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint64_field * @return Constant reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const + { + return m_bounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint64_field * @return Reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint64_field() + { + return m_bounded_sequence_uint64_field; + } /*! @@ -1851,26 +3187,38 @@ class CompleteTestType * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); + const std::vector& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = _bounded_sequence_float_field; + } /*! * @brief This function moves the value in member bounded_sequence_float_field * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); + std::vector&& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_float_field * @return Constant reference to member bounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const + { + return m_bounded_sequence_float_field; + } /*! * @brief This function returns a reference to member bounded_sequence_float_field * @return Reference to member bounded_sequence_float_field */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); + eProsima_user_DllExport std::vector& bounded_sequence_float_field() + { + return m_bounded_sequence_float_field; + } /*! @@ -1878,26 +3226,38 @@ class CompleteTestType * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); + const std::vector& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = _bounded_sequence_double_field; + } /*! * @brief This function moves the value in member bounded_sequence_double_field * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); + std::vector&& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_double_field * @return Constant reference to member bounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const + { + return m_bounded_sequence_double_field; + } /*! * @brief This function returns a reference to member bounded_sequence_double_field * @return Reference to member bounded_sequence_double_field */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); + eProsima_user_DllExport std::vector& bounded_sequence_double_field() + { + return m_bounded_sequence_double_field; + } /*! @@ -1905,26 +3265,38 @@ class CompleteTestType * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); + const std::vector& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + } /*! * @brief This function moves the value in member bounded_sequence_bool_field * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); + std::vector&& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_bool_field * @return Constant reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const + { + return m_bounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member bounded_sequence_bool_field * @return Reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& bounded_sequence_bool_field() + { + return m_bounded_sequence_bool_field; + } /*! @@ -1932,26 +3304,38 @@ class CompleteTestType * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); + const std::vector& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum_field * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); + std::vector&& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum_field * @return Constant reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const + { + return m_bounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum_field * @return Reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum_field() + { + return m_bounded_sequence_enum_field; + } /*! @@ -1959,26 +3343,38 @@ class CompleteTestType * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); + const std::vector& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum2_field * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); + std::vector&& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum2_field * @return Constant reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const + { + return m_bounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum2_field * @return Reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum2_field() + { + return m_bounded_sequence_enum2_field; + } /*! @@ -1986,26 +3382,38 @@ class CompleteTestType * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); + const std::vector& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + } /*! * @brief This function moves the value in member bounded_sequence_struct_field * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); + std::vector&& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_struct_field * @return Constant reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const + { + return m_bounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member bounded_sequence_struct_field * @return Reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& bounded_sequence_struct_field() + { + return m_bounded_sequence_struct_field; + } /*! @@ -2013,26 +3421,38 @@ class CompleteTestType * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); + const std::vector& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + } /*! * @brief This function moves the value in member unbounded_sequence_char_field * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); + std::vector&& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_char_field * @return Constant reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const + { + return m_unbounded_sequence_char_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_char_field * @return Reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_char_field() + { + return m_unbounded_sequence_char_field; + } /*! @@ -2040,26 +3460,38 @@ class CompleteTestType * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); + const std::vector& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint8_field * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); + std::vector&& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint8_field * @return Constant reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const + { + return m_unbounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint8_field * @return Reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field() + { + return m_unbounded_sequence_uint8_field; + } /*! @@ -2067,26 +3499,38 @@ class CompleteTestType * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); + const std::vector& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int16_field * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); + std::vector&& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int16_field * @return Constant reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const + { + return m_unbounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int16_field * @return Reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int16_field() + { + return m_unbounded_sequence_int16_field; + } /*! @@ -2094,26 +3538,38 @@ class CompleteTestType * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); + const std::vector& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint16_field * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); + std::vector&& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint16_field * @return Constant reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const + { + return m_unbounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint16_field * @return Reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field() + { + return m_unbounded_sequence_uint16_field; + } /*! @@ -2121,26 +3577,38 @@ class CompleteTestType * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); + const std::vector& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int32_field * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); + std::vector&& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int32_field * @return Constant reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const + { + return m_unbounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int32_field * @return Reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int32_field() + { + return m_unbounded_sequence_int32_field; + } /*! @@ -2148,26 +3616,38 @@ class CompleteTestType * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); + const std::vector& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint32_field * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); + std::vector&& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint32_field * @return Constant reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const + { + return m_unbounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint32_field * @return Reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field() + { + return m_unbounded_sequence_uint32_field; + } /*! @@ -2175,26 +3655,38 @@ class CompleteTestType * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); + const std::vector& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int64_field * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); + std::vector&& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int64_field * @return Constant reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const + { + return m_unbounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int64_field * @return Reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int64_field() + { + return m_unbounded_sequence_int64_field; + } /*! @@ -2202,26 +3694,38 @@ class CompleteTestType * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); + const std::vector& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint64_field * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); + std::vector&& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint64_field * @return Constant reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const + { + return m_unbounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint64_field * @return Reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field() + { + return m_unbounded_sequence_uint64_field; + } /*! @@ -2229,26 +3733,38 @@ class CompleteTestType * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); + const std::vector& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + } /*! * @brief This function moves the value in member unbounded_sequence_float_field * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); + std::vector&& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_float_field * @return Constant reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const + { + return m_unbounded_sequence_float_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_float_field * @return Reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_float_field() + { + return m_unbounded_sequence_float_field; + } /*! @@ -2256,26 +3772,38 @@ class CompleteTestType * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); + const std::vector& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + } /*! * @brief This function moves the value in member unbounded_sequence_double_field * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); + std::vector&& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_double_field * @return Constant reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const + { + return m_unbounded_sequence_double_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_double_field * @return Reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_double_field() + { + return m_unbounded_sequence_double_field; + } /*! @@ -2283,26 +3811,38 @@ class CompleteTestType * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); + const std::vector& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + } /*! * @brief This function moves the value in member unbounded_sequence_bool_field * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); + std::vector&& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_bool_field * @return Constant reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const + { + return m_unbounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_bool_field * @return Reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_bool_field() + { + return m_unbounded_sequence_bool_field; + } /*! @@ -2310,26 +3850,38 @@ class CompleteTestType * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); + const std::vector& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum_field * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); + std::vector&& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum_field * @return Constant reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const + { + return m_unbounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum_field * @return Reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum_field() + { + return m_unbounded_sequence_enum_field; + } /*! @@ -2337,26 +3889,38 @@ class CompleteTestType * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); + const std::vector& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum2_field * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); + std::vector&& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum2_field * @return Constant reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const + { + return m_unbounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum2_field * @return Reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field() + { + return m_unbounded_sequence_enum2_field; + } /*! @@ -2364,26 +3928,40 @@ class CompleteTestType * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); + const std::vector& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + } /*! * @brief This function moves the value in member unbounded_sequence_struct_field * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); + std::vector&& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_struct_field * @return Constant reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const + { + return m_unbounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_struct_field * @return Reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_struct_field() + { + return m_unbounded_sequence_struct_field; + } + + private: @@ -2399,9 +3977,9 @@ class CompleteTestType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - eprosima::test::Color m_enum_field{eprosima::test::RED}; - eprosima::test::Material m_enum2_field{eprosima::test::WOOD}; - eprosima::test::StructType m_struct_field; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; + StructType m_struct_field; eprosima::fastcdr::optional m_char_opt_field; eprosima::fastcdr::optional m_uint8_opt_field; eprosima::fastcdr::optional m_int16_opt_field; @@ -2414,9 +3992,9 @@ class CompleteTestType eprosima::fastcdr::optional m_double_opt_field; eprosima::fastcdr::optional m_bool_opt_field; eprosima::fastcdr::optional m_string_opt_field; - eprosima::fastcdr::optional m_enum_opt_field; - eprosima::fastcdr::optional m_enum2_opt_field; - eprosima::fastcdr::optional m_struct_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; @@ -2428,9 +4006,9 @@ class CompleteTestType std::array m_array_float_field{0.0}; std::array m_array_double_field{0.0}; std::array m_array_bool_field{false}; - std::array m_array_enum_field{eprosima::test::RED}; - std::array m_array_enum2_field{eprosima::test::WOOD}; - std::array m_array_struct_field; + std::array m_array_enum_field{Color::RED}; + std::array m_array_enum2_field{Material::WOOD}; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; @@ -2442,9 +4020,9 @@ class CompleteTestType std::vector m_bounded_sequence_float_field; std::vector m_bounded_sequence_double_field; std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; + std::vector m_bounded_sequence_enum_field; + std::vector m_bounded_sequence_enum2_field; + std::vector m_bounded_sequence_struct_field; std::vector m_unbounded_sequence_char_field; std::vector m_unbounded_sequence_uint8_field; std::vector m_unbounded_sequence_int16_field; @@ -2456,15 +4034,11 @@ class CompleteTestType std::vector m_unbounded_sequence_float_field; std::vector m_unbounded_sequence_double_field; std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; + std::vector m_unbounded_sequence_enum_field; + std::vector m_unbounded_sequence_enum2_field; + std::vector m_unbounded_sequence_struct_field; }; - - - - /*! * @brief This class represents the structure KeyedCompleteTestType defined by the user in the IDL file. * @ingroup test_modules @@ -2476,73 +4050,614 @@ class KeyedCompleteTestType /*! * @brief Default constructor. */ - eProsima_user_DllExport KeyedCompleteTestType(); + eProsima_user_DllExport KeyedCompleteTestType() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~KeyedCompleteTestType(); + eProsima_user_DllExport ~KeyedCompleteTestType() + { + } /*! * @brief Copy constructor. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. + * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType( - const KeyedCompleteTestType& x); + const KeyedCompleteTestType& x) + { + m_id = x.m_id; + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + } /*! * @brief Move constructor. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. + * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept; + KeyedCompleteTestType&& x) noexcept + { + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + } /*! * @brief Copy assignment. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. + * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType& operator =( - const KeyedCompleteTestType& x); + const KeyedCompleteTestType& x) + { + + m_id = x.m_id; + + m_char_field = x.m_char_field; + + m_uint8_field = x.m_uint8_field; + + m_int16_field = x.m_int16_field; + + m_uint16_field = x.m_uint16_field; + + m_int32_field = x.m_int32_field; + + m_uint32_field = x.m_uint32_field; + + m_int64_field = x.m_int64_field; + + m_uint64_field = x.m_uint64_field; + + m_float_field = x.m_float_field; + + m_double_field = x.m_double_field; + + m_bool_field = x.m_bool_field; + + m_string_field = x.m_string_field; + + m_enum_field = x.m_enum_field; + + m_enum2_field = x.m_enum2_field; + + m_struct_field = x.m_struct_field; + + m_char_opt_field = x.m_char_opt_field; + + m_uint8_opt_field = x.m_uint8_opt_field; + + m_int16_opt_field = x.m_int16_opt_field; + + m_uint16_opt_field = x.m_uint16_opt_field; + + m_int32_opt_field = x.m_int32_opt_field; + + m_uint32_opt_field = x.m_uint32_opt_field; + + m_int64_opt_field = x.m_int64_opt_field; + + m_uint64_opt_field = x.m_uint64_opt_field; + + m_float_opt_field = x.m_float_opt_field; + + m_double_opt_field = x.m_double_opt_field; + + m_bool_opt_field = x.m_bool_opt_field; + + m_string_opt_field = x.m_string_opt_field; + + m_enum_opt_field = x.m_enum_opt_field; + + m_enum2_opt_field = x.m_enum2_opt_field; + + m_struct_opt_field = x.m_struct_opt_field; + + m_array_char_field = x.m_array_char_field; + + m_array_uint8_field = x.m_array_uint8_field; + + m_array_int16_field = x.m_array_int16_field; + + m_array_uint16_field = x.m_array_uint16_field; + + m_array_int32_field = x.m_array_int32_field; + + m_array_uint32_field = x.m_array_uint32_field; + + m_array_int64_field = x.m_array_int64_field; + + m_array_uint64_field = x.m_array_uint64_field; + + m_array_float_field = x.m_array_float_field; + + m_array_double_field = x.m_array_double_field; + + m_array_bool_field = x.m_array_bool_field; + + m_array_enum_field = x.m_array_enum_field; + + m_array_enum2_field = x.m_array_enum2_field; + + m_array_struct_field = x.m_array_struct_field; + + m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; + + m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; + + m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; + + m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; + + m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; + + m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; + + m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; + + m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; + + m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; + + m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; + + m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; + + m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; + + m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; + + m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; + + m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; + + m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; + + m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; + + m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; + + m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; + + m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; + + m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; + + m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; + + m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; + + m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; + + m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; + + m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; + + m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; + + m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; + + return *this; + } /*! * @brief Move assignment. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. + * @param x Reference to the object KeyedCompleteTestType that will be copied. */ eProsima_user_DllExport KeyedCompleteTestType& operator =( - KeyedCompleteTestType&& x) noexcept; + KeyedCompleteTestType&& x) noexcept + { + + m_id = x.m_id; + m_char_field = x.m_char_field; + m_uint8_field = x.m_uint8_field; + m_int16_field = x.m_int16_field; + m_uint16_field = x.m_uint16_field; + m_int32_field = x.m_int32_field; + m_uint32_field = x.m_uint32_field; + m_int64_field = x.m_int64_field; + m_uint64_field = x.m_uint64_field; + m_float_field = x.m_float_field; + m_double_field = x.m_double_field; + m_bool_field = x.m_bool_field; + m_string_field = std::move(x.m_string_field); + m_enum_field = x.m_enum_field; + m_enum2_field = x.m_enum2_field; + m_struct_field = std::move(x.m_struct_field); + m_char_opt_field = x.m_char_opt_field; + m_uint8_opt_field = x.m_uint8_opt_field; + m_int16_opt_field = x.m_int16_opt_field; + m_uint16_opt_field = x.m_uint16_opt_field; + m_int32_opt_field = x.m_int32_opt_field; + m_uint32_opt_field = x.m_uint32_opt_field; + m_int64_opt_field = x.m_int64_opt_field; + m_uint64_opt_field = x.m_uint64_opt_field; + m_float_opt_field = x.m_float_opt_field; + m_double_opt_field = x.m_double_opt_field; + m_bool_opt_field = x.m_bool_opt_field; + m_string_opt_field = std::move(x.m_string_opt_field); + m_enum_opt_field = x.m_enum_opt_field; + m_enum2_opt_field = x.m_enum2_opt_field; + m_struct_opt_field = std::move(x.m_struct_opt_field); + m_array_char_field = std::move(x.m_array_char_field); + m_array_uint8_field = std::move(x.m_array_uint8_field); + m_array_int16_field = std::move(x.m_array_int16_field); + m_array_uint16_field = std::move(x.m_array_uint16_field); + m_array_int32_field = std::move(x.m_array_int32_field); + m_array_uint32_field = std::move(x.m_array_uint32_field); + m_array_int64_field = std::move(x.m_array_int64_field); + m_array_uint64_field = std::move(x.m_array_uint64_field); + m_array_float_field = std::move(x.m_array_float_field); + m_array_double_field = std::move(x.m_array_double_field); + m_array_bool_field = std::move(x.m_array_bool_field); + m_array_enum_field = std::move(x.m_array_enum_field); + m_array_enum2_field = std::move(x.m_array_enum2_field); + m_array_struct_field = std::move(x.m_array_struct_field); + m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); + m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); + m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); + m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); + m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); + m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); + m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); + m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); + m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); + m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); + m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); + m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); + m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); + m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); + m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); + m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); + m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); + m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); + m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); + m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); + m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); + m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); + m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); + m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); + m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); + m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); + m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); + m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); + return *this; + } /*! * @brief Comparison operator. - * @param x eprosima::test::KeyedCompleteTestType object to compare. + * @param x KeyedCompleteTestType object to compare. */ eProsima_user_DllExport bool operator ==( - const KeyedCompleteTestType& x) const; + const KeyedCompleteTestType& x) const + { + return (m_id == x.m_id && + m_char_field == x.m_char_field && + m_uint8_field == x.m_uint8_field && + m_int16_field == x.m_int16_field && + m_uint16_field == x.m_uint16_field && + m_int32_field == x.m_int32_field && + m_uint32_field == x.m_uint32_field && + m_int64_field == x.m_int64_field && + m_uint64_field == x.m_uint64_field && + m_float_field == x.m_float_field && + m_double_field == x.m_double_field && + m_bool_field == x.m_bool_field && + m_string_field == x.m_string_field && + m_enum_field == x.m_enum_field && + m_enum2_field == x.m_enum2_field && + m_struct_field == x.m_struct_field && + m_char_opt_field == x.m_char_opt_field && + m_uint8_opt_field == x.m_uint8_opt_field && + m_int16_opt_field == x.m_int16_opt_field && + m_uint16_opt_field == x.m_uint16_opt_field && + m_int32_opt_field == x.m_int32_opt_field && + m_uint32_opt_field == x.m_uint32_opt_field && + m_int64_opt_field == x.m_int64_opt_field && + m_uint64_opt_field == x.m_uint64_opt_field && + m_float_opt_field == x.m_float_opt_field && + m_double_opt_field == x.m_double_opt_field && + m_bool_opt_field == x.m_bool_opt_field && + m_string_opt_field == x.m_string_opt_field && + m_enum_opt_field == x.m_enum_opt_field && + m_enum2_opt_field == x.m_enum2_opt_field && + m_struct_opt_field == x.m_struct_opt_field && + m_array_char_field == x.m_array_char_field && + m_array_uint8_field == x.m_array_uint8_field && + m_array_int16_field == x.m_array_int16_field && + m_array_uint16_field == x.m_array_uint16_field && + m_array_int32_field == x.m_array_int32_field && + m_array_uint32_field == x.m_array_uint32_field && + m_array_int64_field == x.m_array_int64_field && + m_array_uint64_field == x.m_array_uint64_field && + m_array_float_field == x.m_array_float_field && + m_array_double_field == x.m_array_double_field && + m_array_bool_field == x.m_array_bool_field && + m_array_enum_field == x.m_array_enum_field && + m_array_enum2_field == x.m_array_enum2_field && + m_array_struct_field == x.m_array_struct_field && + m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && + m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && + m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && + m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && + m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && + m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && + m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && + m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && + m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && + m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && + m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && + m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && + m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && + m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && + m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && + m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && + m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && + m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && + m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && + m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && + m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && + m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && + m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && + m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && + m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && + m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && + m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && + m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); + } /*! * @brief Comparison operator. - * @param x eprosima::test::KeyedCompleteTestType object to compare. + * @param x KeyedCompleteTestType object to compare. */ eProsima_user_DllExport bool operator !=( - const KeyedCompleteTestType& x) const; + const KeyedCompleteTestType& x) const + { + return !(*this == x); + } /*! * @brief This function sets a value in member id * @param _id New value for member id */ eProsima_user_DllExport void id( - int32_t _id); + int32_t _id) + { + m_id = _id; + } /*! * @brief This function returns the value of member id * @return Value of member id */ - eProsima_user_DllExport int32_t id() const; + eProsima_user_DllExport int32_t id() const + { + return m_id; + } /*! * @brief This function returns a reference to member id * @return Reference to member id */ - eProsima_user_DllExport int32_t& id(); + eProsima_user_DllExport int32_t& id() + { + return m_id; + } /*! @@ -2550,19 +4665,28 @@ class KeyedCompleteTestType * @param _char_field New value for member char_field */ eProsima_user_DllExport void char_field( - char _char_field); + char _char_field) + { + m_char_field = _char_field; + } /*! * @brief This function returns the value of member char_field * @return Value of member char_field */ - eProsima_user_DllExport char char_field() const; + eProsima_user_DllExport char char_field() const + { + return m_char_field; + } /*! * @brief This function returns a reference to member char_field * @return Reference to member char_field */ - eProsima_user_DllExport char& char_field(); + eProsima_user_DllExport char& char_field() + { + return m_char_field; + } /*! @@ -2570,19 +4694,28 @@ class KeyedCompleteTestType * @param _uint8_field New value for member uint8_field */ eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); + uint8_t _uint8_field) + { + m_uint8_field = _uint8_field; + } /*! * @brief This function returns the value of member uint8_field * @return Value of member uint8_field */ - eProsima_user_DllExport uint8_t uint8_field() const; + eProsima_user_DllExport uint8_t uint8_field() const + { + return m_uint8_field; + } /*! * @brief This function returns a reference to member uint8_field * @return Reference to member uint8_field */ - eProsima_user_DllExport uint8_t& uint8_field(); + eProsima_user_DllExport uint8_t& uint8_field() + { + return m_uint8_field; + } /*! @@ -2590,19 +4723,28 @@ class KeyedCompleteTestType * @param _int16_field New value for member int16_field */ eProsima_user_DllExport void int16_field( - int16_t _int16_field); + int16_t _int16_field) + { + m_int16_field = _int16_field; + } /*! * @brief This function returns the value of member int16_field * @return Value of member int16_field */ - eProsima_user_DllExport int16_t int16_field() const; + eProsima_user_DllExport int16_t int16_field() const + { + return m_int16_field; + } /*! * @brief This function returns a reference to member int16_field * @return Reference to member int16_field */ - eProsima_user_DllExport int16_t& int16_field(); + eProsima_user_DllExport int16_t& int16_field() + { + return m_int16_field; + } /*! @@ -2610,19 +4752,28 @@ class KeyedCompleteTestType * @param _uint16_field New value for member uint16_field */ eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); + uint16_t _uint16_field) + { + m_uint16_field = _uint16_field; + } /*! * @brief This function returns the value of member uint16_field * @return Value of member uint16_field */ - eProsima_user_DllExport uint16_t uint16_field() const; + eProsima_user_DllExport uint16_t uint16_field() const + { + return m_uint16_field; + } /*! * @brief This function returns a reference to member uint16_field * @return Reference to member uint16_field */ - eProsima_user_DllExport uint16_t& uint16_field(); + eProsima_user_DllExport uint16_t& uint16_field() + { + return m_uint16_field; + } /*! @@ -2630,19 +4781,28 @@ class KeyedCompleteTestType * @param _int32_field New value for member int32_field */ eProsima_user_DllExport void int32_field( - int32_t _int32_field); + int32_t _int32_field) + { + m_int32_field = _int32_field; + } /*! * @brief This function returns the value of member int32_field * @return Value of member int32_field */ - eProsima_user_DllExport int32_t int32_field() const; + eProsima_user_DllExport int32_t int32_field() const + { + return m_int32_field; + } /*! * @brief This function returns a reference to member int32_field * @return Reference to member int32_field */ - eProsima_user_DllExport int32_t& int32_field(); + eProsima_user_DllExport int32_t& int32_field() + { + return m_int32_field; + } /*! @@ -2650,19 +4810,28 @@ class KeyedCompleteTestType * @param _uint32_field New value for member uint32_field */ eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); + uint32_t _uint32_field) + { + m_uint32_field = _uint32_field; + } /*! * @brief This function returns the value of member uint32_field * @return Value of member uint32_field */ - eProsima_user_DllExport uint32_t uint32_field() const; + eProsima_user_DllExport uint32_t uint32_field() const + { + return m_uint32_field; + } /*! * @brief This function returns a reference to member uint32_field * @return Reference to member uint32_field */ - eProsima_user_DllExport uint32_t& uint32_field(); + eProsima_user_DllExport uint32_t& uint32_field() + { + return m_uint32_field; + } /*! @@ -2670,19 +4839,28 @@ class KeyedCompleteTestType * @param _int64_field New value for member int64_field */ eProsima_user_DllExport void int64_field( - int64_t _int64_field); + int64_t _int64_field) + { + m_int64_field = _int64_field; + } /*! * @brief This function returns the value of member int64_field * @return Value of member int64_field */ - eProsima_user_DllExport int64_t int64_field() const; + eProsima_user_DllExport int64_t int64_field() const + { + return m_int64_field; + } /*! * @brief This function returns a reference to member int64_field * @return Reference to member int64_field */ - eProsima_user_DllExport int64_t& int64_field(); + eProsima_user_DllExport int64_t& int64_field() + { + return m_int64_field; + } /*! @@ -2690,19 +4868,28 @@ class KeyedCompleteTestType * @param _uint64_field New value for member uint64_field */ eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); + uint64_t _uint64_field) + { + m_uint64_field = _uint64_field; + } /*! * @brief This function returns the value of member uint64_field * @return Value of member uint64_field */ - eProsima_user_DllExport uint64_t uint64_field() const; + eProsima_user_DllExport uint64_t uint64_field() const + { + return m_uint64_field; + } /*! * @brief This function returns a reference to member uint64_field * @return Reference to member uint64_field */ - eProsima_user_DllExport uint64_t& uint64_field(); + eProsima_user_DllExport uint64_t& uint64_field() + { + return m_uint64_field; + } /*! @@ -2710,19 +4897,28 @@ class KeyedCompleteTestType * @param _float_field New value for member float_field */ eProsima_user_DllExport void float_field( - float _float_field); + float _float_field) + { + m_float_field = _float_field; + } /*! * @brief This function returns the value of member float_field * @return Value of member float_field */ - eProsima_user_DllExport float float_field() const; + eProsima_user_DllExport float float_field() const + { + return m_float_field; + } /*! * @brief This function returns a reference to member float_field * @return Reference to member float_field */ - eProsima_user_DllExport float& float_field(); + eProsima_user_DllExport float& float_field() + { + return m_float_field; + } /*! @@ -2730,19 +4926,28 @@ class KeyedCompleteTestType * @param _double_field New value for member double_field */ eProsima_user_DllExport void double_field( - double _double_field); + double _double_field) + { + m_double_field = _double_field; + } /*! * @brief This function returns the value of member double_field * @return Value of member double_field */ - eProsima_user_DllExport double double_field() const; + eProsima_user_DllExport double double_field() const + { + return m_double_field; + } /*! * @brief This function returns a reference to member double_field * @return Reference to member double_field */ - eProsima_user_DllExport double& double_field(); + eProsima_user_DllExport double& double_field() + { + return m_double_field; + } /*! @@ -2750,19 +4955,28 @@ class KeyedCompleteTestType * @param _bool_field New value for member bool_field */ eProsima_user_DllExport void bool_field( - bool _bool_field); + bool _bool_field) + { + m_bool_field = _bool_field; + } /*! * @brief This function returns the value of member bool_field * @return Value of member bool_field */ - eProsima_user_DllExport bool bool_field() const; + eProsima_user_DllExport bool bool_field() const + { + return m_bool_field; + } /*! * @brief This function returns a reference to member bool_field * @return Reference to member bool_field */ - eProsima_user_DllExport bool& bool_field(); + eProsima_user_DllExport bool& bool_field() + { + return m_bool_field; + } /*! @@ -2770,26 +4984,38 @@ class KeyedCompleteTestType * @param _string_field New value to be copied in member string_field */ eProsima_user_DllExport void string_field( - const std::string& _string_field); + const std::string& _string_field) + { + m_string_field = _string_field; + } /*! * @brief This function moves the value in member string_field * @param _string_field New value to be moved in member string_field */ eProsima_user_DllExport void string_field( - std::string&& _string_field); + std::string&& _string_field) + { + m_string_field = std::move(_string_field); + } /*! * @brief This function returns a constant reference to member string_field * @return Constant reference to member string_field */ - eProsima_user_DllExport const std::string& string_field() const; + eProsima_user_DllExport const std::string& string_field() const + { + return m_string_field; + } /*! * @brief This function returns a reference to member string_field * @return Reference to member string_field */ - eProsima_user_DllExport std::string& string_field(); + eProsima_user_DllExport std::string& string_field() + { + return m_string_field; + } /*! @@ -2797,19 +5023,28 @@ class KeyedCompleteTestType * @param _enum_field New value for member enum_field */ eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); + Color _enum_field) + { + m_enum_field = _enum_field; + } /*! * @brief This function returns the value of member enum_field * @return Value of member enum_field */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; + eProsima_user_DllExport Color enum_field() const + { + return m_enum_field; + } /*! * @brief This function returns a reference to member enum_field * @return Reference to member enum_field */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); + eProsima_user_DllExport Color& enum_field() + { + return m_enum_field; + } /*! @@ -2817,19 +5052,28 @@ class KeyedCompleteTestType * @param _enum2_field New value for member enum2_field */ eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); + Material _enum2_field) + { + m_enum2_field = _enum2_field; + } /*! * @brief This function returns the value of member enum2_field * @return Value of member enum2_field */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; + eProsima_user_DllExport Material enum2_field() const + { + return m_enum2_field; + } /*! * @brief This function returns a reference to member enum2_field * @return Reference to member enum2_field */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); + eProsima_user_DllExport Material& enum2_field() + { + return m_enum2_field; + } /*! @@ -2837,26 +5081,38 @@ class KeyedCompleteTestType * @param _struct_field New value to be copied in member struct_field */ eProsima_user_DllExport void struct_field( - const eprosima::test::StructType& _struct_field); + const StructType& _struct_field) + { + m_struct_field = _struct_field; + } /*! * @brief This function moves the value in member struct_field * @param _struct_field New value to be moved in member struct_field */ eProsima_user_DllExport void struct_field( - eprosima::test::StructType&& _struct_field); + StructType&& _struct_field) + { + m_struct_field = std::move(_struct_field); + } /*! * @brief This function returns a constant reference to member struct_field * @return Constant reference to member struct_field */ - eProsima_user_DllExport const eprosima::test::StructType& struct_field() const; + eProsima_user_DllExport const StructType& struct_field() const + { + return m_struct_field; + } /*! * @brief This function returns a reference to member struct_field * @return Reference to member struct_field */ - eProsima_user_DllExport eprosima::test::StructType& struct_field(); + eProsima_user_DllExport StructType& struct_field() + { + return m_struct_field; + } /*! @@ -2864,26 +5120,38 @@ class KeyedCompleteTestType * @param _char_opt_field New value to be copied in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - const eprosima::fastcdr::optional& _char_opt_field); + const eprosima::fastcdr::optional& _char_opt_field) + { + m_char_opt_field = _char_opt_field; + } /*! * @brief This function moves the value in member char_opt_field * @param _char_opt_field New value to be moved in member char_opt_field */ eProsima_user_DllExport void char_opt_field( - eprosima::fastcdr::optional&& _char_opt_field); + eprosima::fastcdr::optional&& _char_opt_field) + { + m_char_opt_field = std::move(_char_opt_field); + } /*! * @brief This function returns a constant reference to member char_opt_field * @return Constant reference to member char_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& char_opt_field() const + { + return m_char_opt_field; + } /*! * @brief This function returns a reference to member char_opt_field * @return Reference to member char_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& char_opt_field() + { + return m_char_opt_field; + } /*! @@ -2891,26 +5159,38 @@ class KeyedCompleteTestType * @param _uint8_opt_field New value to be copied in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - const eprosima::fastcdr::optional& _uint8_opt_field); + const eprosima::fastcdr::optional& _uint8_opt_field) + { + m_uint8_opt_field = _uint8_opt_field; + } /*! * @brief This function moves the value in member uint8_opt_field * @param _uint8_opt_field New value to be moved in member uint8_opt_field */ eProsima_user_DllExport void uint8_opt_field( - eprosima::fastcdr::optional&& _uint8_opt_field); + eprosima::fastcdr::optional&& _uint8_opt_field) + { + m_uint8_opt_field = std::move(_uint8_opt_field); + } /*! * @brief This function returns a constant reference to member uint8_opt_field * @return Constant reference to member uint8_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint8_opt_field() const + { + return m_uint8_opt_field; + } /*! * @brief This function returns a reference to member uint8_opt_field * @return Reference to member uint8_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint8_opt_field() + { + return m_uint8_opt_field; + } /*! @@ -2918,26 +5198,38 @@ class KeyedCompleteTestType * @param _int16_opt_field New value to be copied in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - const eprosima::fastcdr::optional& _int16_opt_field); + const eprosima::fastcdr::optional& _int16_opt_field) + { + m_int16_opt_field = _int16_opt_field; + } /*! * @brief This function moves the value in member int16_opt_field * @param _int16_opt_field New value to be moved in member int16_opt_field */ eProsima_user_DllExport void int16_opt_field( - eprosima::fastcdr::optional&& _int16_opt_field); + eprosima::fastcdr::optional&& _int16_opt_field) + { + m_int16_opt_field = std::move(_int16_opt_field); + } /*! * @brief This function returns a constant reference to member int16_opt_field * @return Constant reference to member int16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int16_opt_field() const + { + return m_int16_opt_field; + } /*! * @brief This function returns a reference to member int16_opt_field * @return Reference to member int16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int16_opt_field() + { + return m_int16_opt_field; + } /*! @@ -2945,26 +5237,38 @@ class KeyedCompleteTestType * @param _uint16_opt_field New value to be copied in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - const eprosima::fastcdr::optional& _uint16_opt_field); + const eprosima::fastcdr::optional& _uint16_opt_field) + { + m_uint16_opt_field = _uint16_opt_field; + } /*! * @brief This function moves the value in member uint16_opt_field * @param _uint16_opt_field New value to be moved in member uint16_opt_field */ eProsima_user_DllExport void uint16_opt_field( - eprosima::fastcdr::optional&& _uint16_opt_field); + eprosima::fastcdr::optional&& _uint16_opt_field) + { + m_uint16_opt_field = std::move(_uint16_opt_field); + } /*! * @brief This function returns a constant reference to member uint16_opt_field * @return Constant reference to member uint16_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint16_opt_field() const + { + return m_uint16_opt_field; + } /*! * @brief This function returns a reference to member uint16_opt_field * @return Reference to member uint16_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint16_opt_field() + { + return m_uint16_opt_field; + } /*! @@ -2972,26 +5276,38 @@ class KeyedCompleteTestType * @param _int32_opt_field New value to be copied in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - const eprosima::fastcdr::optional& _int32_opt_field); + const eprosima::fastcdr::optional& _int32_opt_field) + { + m_int32_opt_field = _int32_opt_field; + } /*! * @brief This function moves the value in member int32_opt_field * @param _int32_opt_field New value to be moved in member int32_opt_field */ eProsima_user_DllExport void int32_opt_field( - eprosima::fastcdr::optional&& _int32_opt_field); + eprosima::fastcdr::optional&& _int32_opt_field) + { + m_int32_opt_field = std::move(_int32_opt_field); + } /*! * @brief This function returns a constant reference to member int32_opt_field * @return Constant reference to member int32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int32_opt_field() const + { + return m_int32_opt_field; + } /*! * @brief This function returns a reference to member int32_opt_field * @return Reference to member int32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int32_opt_field() + { + return m_int32_opt_field; + } /*! @@ -2999,26 +5315,38 @@ class KeyedCompleteTestType * @param _uint32_opt_field New value to be copied in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - const eprosima::fastcdr::optional& _uint32_opt_field); + const eprosima::fastcdr::optional& _uint32_opt_field) + { + m_uint32_opt_field = _uint32_opt_field; + } /*! * @brief This function moves the value in member uint32_opt_field * @param _uint32_opt_field New value to be moved in member uint32_opt_field */ eProsima_user_DllExport void uint32_opt_field( - eprosima::fastcdr::optional&& _uint32_opt_field); + eprosima::fastcdr::optional&& _uint32_opt_field) + { + m_uint32_opt_field = std::move(_uint32_opt_field); + } /*! * @brief This function returns a constant reference to member uint32_opt_field * @return Constant reference to member uint32_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint32_opt_field() const + { + return m_uint32_opt_field; + } /*! * @brief This function returns a reference to member uint32_opt_field * @return Reference to member uint32_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint32_opt_field() + { + return m_uint32_opt_field; + } /*! @@ -3026,26 +5354,38 @@ class KeyedCompleteTestType * @param _int64_opt_field New value to be copied in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - const eprosima::fastcdr::optional& _int64_opt_field); + const eprosima::fastcdr::optional& _int64_opt_field) + { + m_int64_opt_field = _int64_opt_field; + } /*! * @brief This function moves the value in member int64_opt_field * @param _int64_opt_field New value to be moved in member int64_opt_field */ eProsima_user_DllExport void int64_opt_field( - eprosima::fastcdr::optional&& _int64_opt_field); + eprosima::fastcdr::optional&& _int64_opt_field) + { + m_int64_opt_field = std::move(_int64_opt_field); + } /*! * @brief This function returns a constant reference to member int64_opt_field * @return Constant reference to member int64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& int64_opt_field() const + { + return m_int64_opt_field; + } /*! * @brief This function returns a reference to member int64_opt_field * @return Reference to member int64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& int64_opt_field() + { + return m_int64_opt_field; + } /*! @@ -3053,26 +5393,38 @@ class KeyedCompleteTestType * @param _uint64_opt_field New value to be copied in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - const eprosima::fastcdr::optional& _uint64_opt_field); + const eprosima::fastcdr::optional& _uint64_opt_field) + { + m_uint64_opt_field = _uint64_opt_field; + } /*! * @brief This function moves the value in member uint64_opt_field * @param _uint64_opt_field New value to be moved in member uint64_opt_field */ eProsima_user_DllExport void uint64_opt_field( - eprosima::fastcdr::optional&& _uint64_opt_field); + eprosima::fastcdr::optional&& _uint64_opt_field) + { + m_uint64_opt_field = std::move(_uint64_opt_field); + } /*! * @brief This function returns a constant reference to member uint64_opt_field * @return Constant reference to member uint64_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& uint64_opt_field() const + { + return m_uint64_opt_field; + } /*! * @brief This function returns a reference to member uint64_opt_field * @return Reference to member uint64_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& uint64_opt_field() + { + return m_uint64_opt_field; + } /*! @@ -3080,26 +5432,38 @@ class KeyedCompleteTestType * @param _float_opt_field New value to be copied in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - const eprosima::fastcdr::optional& _float_opt_field); + const eprosima::fastcdr::optional& _float_opt_field) + { + m_float_opt_field = _float_opt_field; + } /*! * @brief This function moves the value in member float_opt_field * @param _float_opt_field New value to be moved in member float_opt_field */ eProsima_user_DllExport void float_opt_field( - eprosima::fastcdr::optional&& _float_opt_field); + eprosima::fastcdr::optional&& _float_opt_field) + { + m_float_opt_field = std::move(_float_opt_field); + } /*! * @brief This function returns a constant reference to member float_opt_field * @return Constant reference to member float_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& float_opt_field() const + { + return m_float_opt_field; + } /*! * @brief This function returns a reference to member float_opt_field * @return Reference to member float_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& float_opt_field() + { + return m_float_opt_field; + } /*! @@ -3107,26 +5471,38 @@ class KeyedCompleteTestType * @param _double_opt_field New value to be copied in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - const eprosima::fastcdr::optional& _double_opt_field); + const eprosima::fastcdr::optional& _double_opt_field) + { + m_double_opt_field = _double_opt_field; + } /*! * @brief This function moves the value in member double_opt_field * @param _double_opt_field New value to be moved in member double_opt_field */ eProsima_user_DllExport void double_opt_field( - eprosima::fastcdr::optional&& _double_opt_field); + eprosima::fastcdr::optional&& _double_opt_field) + { + m_double_opt_field = std::move(_double_opt_field); + } /*! * @brief This function returns a constant reference to member double_opt_field * @return Constant reference to member double_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& double_opt_field() const + { + return m_double_opt_field; + } /*! * @brief This function returns a reference to member double_opt_field * @return Reference to member double_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& double_opt_field() + { + return m_double_opt_field; + } /*! @@ -3134,26 +5510,38 @@ class KeyedCompleteTestType * @param _bool_opt_field New value to be copied in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - const eprosima::fastcdr::optional& _bool_opt_field); + const eprosima::fastcdr::optional& _bool_opt_field) + { + m_bool_opt_field = _bool_opt_field; + } /*! * @brief This function moves the value in member bool_opt_field * @param _bool_opt_field New value to be moved in member bool_opt_field */ eProsima_user_DllExport void bool_opt_field( - eprosima::fastcdr::optional&& _bool_opt_field); + eprosima::fastcdr::optional&& _bool_opt_field) + { + m_bool_opt_field = std::move(_bool_opt_field); + } /*! * @brief This function returns a constant reference to member bool_opt_field * @return Constant reference to member bool_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& bool_opt_field() const + { + return m_bool_opt_field; + } /*! * @brief This function returns a reference to member bool_opt_field * @return Reference to member bool_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& bool_opt_field() + { + return m_bool_opt_field; + } /*! @@ -3161,26 +5549,38 @@ class KeyedCompleteTestType * @param _string_opt_field New value to be copied in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - const eprosima::fastcdr::optional& _string_opt_field); + const eprosima::fastcdr::optional& _string_opt_field) + { + m_string_opt_field = _string_opt_field; + } /*! * @brief This function moves the value in member string_opt_field * @param _string_opt_field New value to be moved in member string_opt_field */ eProsima_user_DllExport void string_opt_field( - eprosima::fastcdr::optional&& _string_opt_field); + eprosima::fastcdr::optional&& _string_opt_field) + { + m_string_opt_field = std::move(_string_opt_field); + } /*! * @brief This function returns a constant reference to member string_opt_field * @return Constant reference to member string_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& string_opt_field() const + { + return m_string_opt_field; + } /*! * @brief This function returns a reference to member string_opt_field * @return Reference to member string_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& string_opt_field() + { + return m_string_opt_field; + } /*! @@ -3188,26 +5588,38 @@ class KeyedCompleteTestType * @param _enum_opt_field New value to be copied in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - const eprosima::fastcdr::optional& _enum_opt_field); + const eprosima::fastcdr::optional& _enum_opt_field) + { + m_enum_opt_field = _enum_opt_field; + } /*! * @brief This function moves the value in member enum_opt_field * @param _enum_opt_field New value to be moved in member enum_opt_field */ eProsima_user_DllExport void enum_opt_field( - eprosima::fastcdr::optional&& _enum_opt_field); + eprosima::fastcdr::optional&& _enum_opt_field) + { + m_enum_opt_field = std::move(_enum_opt_field); + } /*! * @brief This function returns a constant reference to member enum_opt_field * @return Constant reference to member enum_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum_opt_field() const + { + return m_enum_opt_field; + } /*! * @brief This function returns a reference to member enum_opt_field * @return Reference to member enum_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum_opt_field() + { + return m_enum_opt_field; + } /*! @@ -3215,26 +5627,38 @@ class KeyedCompleteTestType * @param _enum2_opt_field New value to be copied in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - const eprosima::fastcdr::optional& _enum2_opt_field); + const eprosima::fastcdr::optional& _enum2_opt_field) + { + m_enum2_opt_field = _enum2_opt_field; + } /*! * @brief This function moves the value in member enum2_opt_field * @param _enum2_opt_field New value to be moved in member enum2_opt_field */ eProsima_user_DllExport void enum2_opt_field( - eprosima::fastcdr::optional&& _enum2_opt_field); + eprosima::fastcdr::optional&& _enum2_opt_field) + { + m_enum2_opt_field = std::move(_enum2_opt_field); + } /*! * @brief This function returns a constant reference to member enum2_opt_field * @return Constant reference to member enum2_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& enum2_opt_field() const + { + return m_enum2_opt_field; + } /*! * @brief This function returns a reference to member enum2_opt_field * @return Reference to member enum2_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& enum2_opt_field() + { + return m_enum2_opt_field; + } /*! @@ -3242,26 +5666,38 @@ class KeyedCompleteTestType * @param _struct_opt_field New value to be copied in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - const eprosima::fastcdr::optional& _struct_opt_field); + const eprosima::fastcdr::optional& _struct_opt_field) + { + m_struct_opt_field = _struct_opt_field; + } /*! * @brief This function moves the value in member struct_opt_field * @param _struct_opt_field New value to be moved in member struct_opt_field */ eProsima_user_DllExport void struct_opt_field( - eprosima::fastcdr::optional&& _struct_opt_field); + eprosima::fastcdr::optional&& _struct_opt_field) + { + m_struct_opt_field = std::move(_struct_opt_field); + } /*! * @brief This function returns a constant reference to member struct_opt_field * @return Constant reference to member struct_opt_field */ - eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const; + eProsima_user_DllExport const eprosima::fastcdr::optional& struct_opt_field() const + { + return m_struct_opt_field; + } /*! * @brief This function returns a reference to member struct_opt_field * @return Reference to member struct_opt_field */ - eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field(); + eProsima_user_DllExport eprosima::fastcdr::optional& struct_opt_field() + { + return m_struct_opt_field; + } /*! @@ -3269,26 +5705,38 @@ class KeyedCompleteTestType * @param _array_char_field New value to be copied in member array_char_field */ eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); + const std::array& _array_char_field) + { + m_array_char_field = _array_char_field; + } /*! * @brief This function moves the value in member array_char_field * @param _array_char_field New value to be moved in member array_char_field */ eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); + std::array&& _array_char_field) + { + m_array_char_field = std::move(_array_char_field); + } /*! * @brief This function returns a constant reference to member array_char_field * @return Constant reference to member array_char_field */ - eProsima_user_DllExport const std::array& array_char_field() const; + eProsima_user_DllExport const std::array& array_char_field() const + { + return m_array_char_field; + } /*! * @brief This function returns a reference to member array_char_field * @return Reference to member array_char_field */ - eProsima_user_DllExport std::array& array_char_field(); + eProsima_user_DllExport std::array& array_char_field() + { + return m_array_char_field; + } /*! @@ -3296,26 +5744,38 @@ class KeyedCompleteTestType * @param _array_uint8_field New value to be copied in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); + const std::array& _array_uint8_field) + { + m_array_uint8_field = _array_uint8_field; + } /*! * @brief This function moves the value in member array_uint8_field * @param _array_uint8_field New value to be moved in member array_uint8_field */ eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); + std::array&& _array_uint8_field) + { + m_array_uint8_field = std::move(_array_uint8_field); + } /*! * @brief This function returns a constant reference to member array_uint8_field * @return Constant reference to member array_uint8_field */ - eProsima_user_DllExport const std::array& array_uint8_field() const; + eProsima_user_DllExport const std::array& array_uint8_field() const + { + return m_array_uint8_field; + } /*! * @brief This function returns a reference to member array_uint8_field * @return Reference to member array_uint8_field */ - eProsima_user_DllExport std::array& array_uint8_field(); + eProsima_user_DllExport std::array& array_uint8_field() + { + return m_array_uint8_field; + } /*! @@ -3323,26 +5783,38 @@ class KeyedCompleteTestType * @param _array_int16_field New value to be copied in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); + const std::array& _array_int16_field) + { + m_array_int16_field = _array_int16_field; + } /*! * @brief This function moves the value in member array_int16_field * @param _array_int16_field New value to be moved in member array_int16_field */ eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); + std::array&& _array_int16_field) + { + m_array_int16_field = std::move(_array_int16_field); + } /*! * @brief This function returns a constant reference to member array_int16_field * @return Constant reference to member array_int16_field */ - eProsima_user_DllExport const std::array& array_int16_field() const; + eProsima_user_DllExport const std::array& array_int16_field() const + { + return m_array_int16_field; + } /*! * @brief This function returns a reference to member array_int16_field * @return Reference to member array_int16_field */ - eProsima_user_DllExport std::array& array_int16_field(); + eProsima_user_DllExport std::array& array_int16_field() + { + return m_array_int16_field; + } /*! @@ -3350,26 +5822,38 @@ class KeyedCompleteTestType * @param _array_uint16_field New value to be copied in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); + const std::array& _array_uint16_field) + { + m_array_uint16_field = _array_uint16_field; + } /*! * @brief This function moves the value in member array_uint16_field * @param _array_uint16_field New value to be moved in member array_uint16_field */ eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); + std::array&& _array_uint16_field) + { + m_array_uint16_field = std::move(_array_uint16_field); + } /*! * @brief This function returns a constant reference to member array_uint16_field * @return Constant reference to member array_uint16_field */ - eProsima_user_DllExport const std::array& array_uint16_field() const; + eProsima_user_DllExport const std::array& array_uint16_field() const + { + return m_array_uint16_field; + } /*! * @brief This function returns a reference to member array_uint16_field * @return Reference to member array_uint16_field */ - eProsima_user_DllExport std::array& array_uint16_field(); + eProsima_user_DllExport std::array& array_uint16_field() + { + return m_array_uint16_field; + } /*! @@ -3377,26 +5861,38 @@ class KeyedCompleteTestType * @param _array_int32_field New value to be copied in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); + const std::array& _array_int32_field) + { + m_array_int32_field = _array_int32_field; + } /*! * @brief This function moves the value in member array_int32_field * @param _array_int32_field New value to be moved in member array_int32_field */ eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); + std::array&& _array_int32_field) + { + m_array_int32_field = std::move(_array_int32_field); + } /*! * @brief This function returns a constant reference to member array_int32_field * @return Constant reference to member array_int32_field */ - eProsima_user_DllExport const std::array& array_int32_field() const; + eProsima_user_DllExport const std::array& array_int32_field() const + { + return m_array_int32_field; + } /*! * @brief This function returns a reference to member array_int32_field * @return Reference to member array_int32_field */ - eProsima_user_DllExport std::array& array_int32_field(); + eProsima_user_DllExport std::array& array_int32_field() + { + return m_array_int32_field; + } /*! @@ -3404,26 +5900,38 @@ class KeyedCompleteTestType * @param _array_uint32_field New value to be copied in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); + const std::array& _array_uint32_field) + { + m_array_uint32_field = _array_uint32_field; + } /*! * @brief This function moves the value in member array_uint32_field * @param _array_uint32_field New value to be moved in member array_uint32_field */ eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); + std::array&& _array_uint32_field) + { + m_array_uint32_field = std::move(_array_uint32_field); + } /*! * @brief This function returns a constant reference to member array_uint32_field * @return Constant reference to member array_uint32_field */ - eProsima_user_DllExport const std::array& array_uint32_field() const; + eProsima_user_DllExport const std::array& array_uint32_field() const + { + return m_array_uint32_field; + } /*! * @brief This function returns a reference to member array_uint32_field * @return Reference to member array_uint32_field */ - eProsima_user_DllExport std::array& array_uint32_field(); + eProsima_user_DllExport std::array& array_uint32_field() + { + return m_array_uint32_field; + } /*! @@ -3431,26 +5939,38 @@ class KeyedCompleteTestType * @param _array_int64_field New value to be copied in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); + const std::array& _array_int64_field) + { + m_array_int64_field = _array_int64_field; + } /*! * @brief This function moves the value in member array_int64_field * @param _array_int64_field New value to be moved in member array_int64_field */ eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); + std::array&& _array_int64_field) + { + m_array_int64_field = std::move(_array_int64_field); + } /*! * @brief This function returns a constant reference to member array_int64_field * @return Constant reference to member array_int64_field */ - eProsima_user_DllExport const std::array& array_int64_field() const; + eProsima_user_DllExport const std::array& array_int64_field() const + { + return m_array_int64_field; + } /*! * @brief This function returns a reference to member array_int64_field * @return Reference to member array_int64_field */ - eProsima_user_DllExport std::array& array_int64_field(); + eProsima_user_DllExport std::array& array_int64_field() + { + return m_array_int64_field; + } /*! @@ -3458,26 +5978,38 @@ class KeyedCompleteTestType * @param _array_uint64_field New value to be copied in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); + const std::array& _array_uint64_field) + { + m_array_uint64_field = _array_uint64_field; + } /*! * @brief This function moves the value in member array_uint64_field * @param _array_uint64_field New value to be moved in member array_uint64_field */ eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); + std::array&& _array_uint64_field) + { + m_array_uint64_field = std::move(_array_uint64_field); + } /*! * @brief This function returns a constant reference to member array_uint64_field * @return Constant reference to member array_uint64_field */ - eProsima_user_DllExport const std::array& array_uint64_field() const; + eProsima_user_DllExport const std::array& array_uint64_field() const + { + return m_array_uint64_field; + } /*! * @brief This function returns a reference to member array_uint64_field * @return Reference to member array_uint64_field */ - eProsima_user_DllExport std::array& array_uint64_field(); + eProsima_user_DllExport std::array& array_uint64_field() + { + return m_array_uint64_field; + } /*! @@ -3485,26 +6017,38 @@ class KeyedCompleteTestType * @param _array_float_field New value to be copied in member array_float_field */ eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); + const std::array& _array_float_field) + { + m_array_float_field = _array_float_field; + } /*! * @brief This function moves the value in member array_float_field * @param _array_float_field New value to be moved in member array_float_field */ eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); + std::array&& _array_float_field) + { + m_array_float_field = std::move(_array_float_field); + } /*! * @brief This function returns a constant reference to member array_float_field * @return Constant reference to member array_float_field */ - eProsima_user_DllExport const std::array& array_float_field() const; + eProsima_user_DllExport const std::array& array_float_field() const + { + return m_array_float_field; + } /*! * @brief This function returns a reference to member array_float_field * @return Reference to member array_float_field */ - eProsima_user_DllExport std::array& array_float_field(); + eProsima_user_DllExport std::array& array_float_field() + { + return m_array_float_field; + } /*! @@ -3512,26 +6056,38 @@ class KeyedCompleteTestType * @param _array_double_field New value to be copied in member array_double_field */ eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); + const std::array& _array_double_field) + { + m_array_double_field = _array_double_field; + } /*! * @brief This function moves the value in member array_double_field * @param _array_double_field New value to be moved in member array_double_field */ eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); + std::array&& _array_double_field) + { + m_array_double_field = std::move(_array_double_field); + } /*! * @brief This function returns a constant reference to member array_double_field * @return Constant reference to member array_double_field */ - eProsima_user_DllExport const std::array& array_double_field() const; + eProsima_user_DllExport const std::array& array_double_field() const + { + return m_array_double_field; + } /*! * @brief This function returns a reference to member array_double_field * @return Reference to member array_double_field */ - eProsima_user_DllExport std::array& array_double_field(); + eProsima_user_DllExport std::array& array_double_field() + { + return m_array_double_field; + } /*! @@ -3539,26 +6095,38 @@ class KeyedCompleteTestType * @param _array_bool_field New value to be copied in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); + const std::array& _array_bool_field) + { + m_array_bool_field = _array_bool_field; + } /*! * @brief This function moves the value in member array_bool_field * @param _array_bool_field New value to be moved in member array_bool_field */ eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); + std::array&& _array_bool_field) + { + m_array_bool_field = std::move(_array_bool_field); + } /*! * @brief This function returns a constant reference to member array_bool_field * @return Constant reference to member array_bool_field */ - eProsima_user_DllExport const std::array& array_bool_field() const; + eProsima_user_DllExport const std::array& array_bool_field() const + { + return m_array_bool_field; + } /*! * @brief This function returns a reference to member array_bool_field * @return Reference to member array_bool_field */ - eProsima_user_DllExport std::array& array_bool_field(); + eProsima_user_DllExport std::array& array_bool_field() + { + return m_array_bool_field; + } /*! @@ -3566,26 +6134,38 @@ class KeyedCompleteTestType * @param _array_enum_field New value to be copied in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); + const std::array& _array_enum_field) + { + m_array_enum_field = _array_enum_field; + } /*! * @brief This function moves the value in member array_enum_field * @param _array_enum_field New value to be moved in member array_enum_field */ eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); + std::array&& _array_enum_field) + { + m_array_enum_field = std::move(_array_enum_field); + } /*! * @brief This function returns a constant reference to member array_enum_field * @return Constant reference to member array_enum_field */ - eProsima_user_DllExport const std::array& array_enum_field() const; + eProsima_user_DllExport const std::array& array_enum_field() const + { + return m_array_enum_field; + } /*! * @brief This function returns a reference to member array_enum_field * @return Reference to member array_enum_field */ - eProsima_user_DllExport std::array& array_enum_field(); + eProsima_user_DllExport std::array& array_enum_field() + { + return m_array_enum_field; + } /*! @@ -3593,26 +6173,38 @@ class KeyedCompleteTestType * @param _array_enum2_field New value to be copied in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); + const std::array& _array_enum2_field) + { + m_array_enum2_field = _array_enum2_field; + } /*! * @brief This function moves the value in member array_enum2_field * @param _array_enum2_field New value to be moved in member array_enum2_field */ eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); + std::array&& _array_enum2_field) + { + m_array_enum2_field = std::move(_array_enum2_field); + } /*! * @brief This function returns a constant reference to member array_enum2_field * @return Constant reference to member array_enum2_field */ - eProsima_user_DllExport const std::array& array_enum2_field() const; + eProsima_user_DllExport const std::array& array_enum2_field() const + { + return m_array_enum2_field; + } /*! * @brief This function returns a reference to member array_enum2_field * @return Reference to member array_enum2_field */ - eProsima_user_DllExport std::array& array_enum2_field(); + eProsima_user_DllExport std::array& array_enum2_field() + { + return m_array_enum2_field; + } /*! @@ -3620,26 +6212,38 @@ class KeyedCompleteTestType * @param _array_struct_field New value to be copied in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); + const std::array& _array_struct_field) + { + m_array_struct_field = _array_struct_field; + } /*! * @brief This function moves the value in member array_struct_field * @param _array_struct_field New value to be moved in member array_struct_field */ eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); + std::array&& _array_struct_field) + { + m_array_struct_field = std::move(_array_struct_field); + } /*! * @brief This function returns a constant reference to member array_struct_field * @return Constant reference to member array_struct_field */ - eProsima_user_DllExport const std::array& array_struct_field() const; + eProsima_user_DllExport const std::array& array_struct_field() const + { + return m_array_struct_field; + } /*! * @brief This function returns a reference to member array_struct_field * @return Reference to member array_struct_field */ - eProsima_user_DllExport std::array& array_struct_field(); + eProsima_user_DllExport std::array& array_struct_field() + { + return m_array_struct_field; + } /*! @@ -3647,26 +6251,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); + const std::vector& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = _bounded_sequence_char_field; + } /*! * @brief This function moves the value in member bounded_sequence_char_field * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field */ eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); + std::vector&& _bounded_sequence_char_field) + { + m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_char_field * @return Constant reference to member bounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const + { + return m_bounded_sequence_char_field; + } /*! * @brief This function returns a reference to member bounded_sequence_char_field * @return Reference to member bounded_sequence_char_field */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); + eProsima_user_DllExport std::vector& bounded_sequence_char_field() + { + return m_bounded_sequence_char_field; + } /*! @@ -3674,26 +6290,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); + const std::vector& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint8_field * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field */ eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); + std::vector&& _bounded_sequence_uint8_field) + { + m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint8_field * @return Constant reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const + { + return m_bounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint8_field * @return Reference to member bounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint8_field() + { + return m_bounded_sequence_uint8_field; + } /*! @@ -3701,26 +6329,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); + const std::vector& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = _bounded_sequence_int16_field; + } /*! * @brief This function moves the value in member bounded_sequence_int16_field * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field */ eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); + std::vector&& _bounded_sequence_int16_field) + { + m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int16_field * @return Constant reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const + { + return m_bounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int16_field * @return Reference to member bounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int16_field() + { + return m_bounded_sequence_int16_field; + } /*! @@ -3728,26 +6368,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); + const std::vector& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint16_field * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field */ eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); + std::vector&& _bounded_sequence_uint16_field) + { + m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint16_field * @return Constant reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const + { + return m_bounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint16_field * @return Reference to member bounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint16_field() + { + return m_bounded_sequence_uint16_field; + } /*! @@ -3755,26 +6407,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); + const std::vector& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = _bounded_sequence_int32_field; + } /*! * @brief This function moves the value in member bounded_sequence_int32_field * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field */ eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); + std::vector&& _bounded_sequence_int32_field) + { + m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int32_field * @return Constant reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const + { + return m_bounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int32_field * @return Reference to member bounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int32_field() + { + return m_bounded_sequence_int32_field; + } /*! @@ -3782,26 +6446,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); + const std::vector& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint32_field * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field */ eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); + std::vector&& _bounded_sequence_uint32_field) + { + m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint32_field * @return Constant reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const + { + return m_bounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint32_field * @return Reference to member bounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint32_field() + { + return m_bounded_sequence_uint32_field; + } /*! @@ -3809,26 +6485,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); + const std::vector& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = _bounded_sequence_int64_field; + } /*! * @brief This function moves the value in member bounded_sequence_int64_field * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field */ eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); + std::vector&& _bounded_sequence_int64_field) + { + m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_int64_field * @return Constant reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const + { + return m_bounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_int64_field * @return Reference to member bounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_int64_field() + { + return m_bounded_sequence_int64_field; + } /*! @@ -3836,26 +6524,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); + const std::vector& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member bounded_sequence_uint64_field * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field */ eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); + std::vector&& _bounded_sequence_uint64_field) + { + m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_uint64_field * @return Constant reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const + { + return m_bounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member bounded_sequence_uint64_field * @return Reference to member bounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& bounded_sequence_uint64_field() + { + return m_bounded_sequence_uint64_field; + } /*! @@ -3863,26 +6563,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); + const std::vector& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = _bounded_sequence_float_field; + } /*! * @brief This function moves the value in member bounded_sequence_float_field * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field */ eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); + std::vector&& _bounded_sequence_float_field) + { + m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_float_field * @return Constant reference to member bounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const + { + return m_bounded_sequence_float_field; + } /*! * @brief This function returns a reference to member bounded_sequence_float_field * @return Reference to member bounded_sequence_float_field */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); + eProsima_user_DllExport std::vector& bounded_sequence_float_field() + { + return m_bounded_sequence_float_field; + } /*! @@ -3890,26 +6602,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); + const std::vector& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = _bounded_sequence_double_field; + } /*! * @brief This function moves the value in member bounded_sequence_double_field * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field */ eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); + std::vector&& _bounded_sequence_double_field) + { + m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_double_field * @return Constant reference to member bounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const + { + return m_bounded_sequence_double_field; + } /*! * @brief This function returns a reference to member bounded_sequence_double_field * @return Reference to member bounded_sequence_double_field */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); + eProsima_user_DllExport std::vector& bounded_sequence_double_field() + { + return m_bounded_sequence_double_field; + } /*! @@ -3917,26 +6641,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); + const std::vector& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = _bounded_sequence_bool_field; + } /*! * @brief This function moves the value in member bounded_sequence_bool_field * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field */ eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); + std::vector&& _bounded_sequence_bool_field) + { + m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_bool_field * @return Constant reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const + { + return m_bounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member bounded_sequence_bool_field * @return Reference to member bounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& bounded_sequence_bool_field() + { + return m_bounded_sequence_bool_field; + } /*! @@ -3944,26 +6680,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); + const std::vector& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = _bounded_sequence_enum_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum_field * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field */ eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); + std::vector&& _bounded_sequence_enum_field) + { + m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum_field * @return Constant reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const + { + return m_bounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum_field * @return Reference to member bounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum_field() + { + return m_bounded_sequence_enum_field; + } /*! @@ -3971,26 +6719,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); + const std::vector& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member bounded_sequence_enum2_field * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field */ eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); + std::vector&& _bounded_sequence_enum2_field) + { + m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_enum2_field * @return Constant reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const + { + return m_bounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member bounded_sequence_enum2_field * @return Reference to member bounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& bounded_sequence_enum2_field() + { + return m_bounded_sequence_enum2_field; + } /*! @@ -3998,26 +6758,38 @@ class KeyedCompleteTestType * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); + const std::vector& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = _bounded_sequence_struct_field; + } /*! * @brief This function moves the value in member bounded_sequence_struct_field * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field */ eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); + std::vector&& _bounded_sequence_struct_field) + { + m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member bounded_sequence_struct_field * @return Constant reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const + { + return m_bounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member bounded_sequence_struct_field * @return Reference to member bounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& bounded_sequence_struct_field() + { + return m_bounded_sequence_struct_field; + } /*! @@ -4025,26 +6797,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); + const std::vector& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = _unbounded_sequence_char_field; + } /*! * @brief This function moves the value in member unbounded_sequence_char_field * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field */ eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); + std::vector&& _unbounded_sequence_char_field) + { + m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_char_field * @return Constant reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const + { + return m_unbounded_sequence_char_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_char_field * @return Reference to member unbounded_sequence_char_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_char_field() + { + return m_unbounded_sequence_char_field; + } /*! @@ -4052,26 +6836,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); + const std::vector& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint8_field * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field */ eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); + std::vector&& _unbounded_sequence_uint8_field) + { + m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint8_field * @return Constant reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const + { + return m_unbounded_sequence_uint8_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint8_field * @return Reference to member unbounded_sequence_uint8_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field() + { + return m_unbounded_sequence_uint8_field; + } /*! @@ -4079,26 +6875,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); + const std::vector& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int16_field * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field */ eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); + std::vector&& _unbounded_sequence_int16_field) + { + m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int16_field * @return Constant reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const + { + return m_unbounded_sequence_int16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int16_field * @return Reference to member unbounded_sequence_int16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int16_field() + { + return m_unbounded_sequence_int16_field; + } /*! @@ -4106,26 +6914,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); + const std::vector& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint16_field * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field */ eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); + std::vector&& _unbounded_sequence_uint16_field) + { + m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint16_field * @return Constant reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const + { + return m_unbounded_sequence_uint16_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint16_field * @return Reference to member unbounded_sequence_uint16_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field() + { + return m_unbounded_sequence_uint16_field; + } /*! @@ -4133,26 +6953,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); + const std::vector& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int32_field * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field */ eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); + std::vector&& _unbounded_sequence_int32_field) + { + m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int32_field * @return Constant reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const + { + return m_unbounded_sequence_int32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int32_field * @return Reference to member unbounded_sequence_int32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int32_field() + { + return m_unbounded_sequence_int32_field; + } /*! @@ -4160,26 +6992,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); + const std::vector& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint32_field * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field */ eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); + std::vector&& _unbounded_sequence_uint32_field) + { + m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint32_field * @return Constant reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const + { + return m_unbounded_sequence_uint32_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint32_field * @return Reference to member unbounded_sequence_uint32_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field() + { + return m_unbounded_sequence_uint32_field; + } /*! @@ -4187,26 +7031,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); + const std::vector& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_int64_field * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field */ eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); + std::vector&& _unbounded_sequence_int64_field) + { + m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_int64_field * @return Constant reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const + { + return m_unbounded_sequence_int64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_int64_field * @return Reference to member unbounded_sequence_int64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_int64_field() + { + return m_unbounded_sequence_int64_field; + } /*! @@ -4214,26 +7070,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); + const std::vector& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; + } /*! * @brief This function moves the value in member unbounded_sequence_uint64_field * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field */ eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); + std::vector&& _unbounded_sequence_uint64_field) + { + m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_uint64_field * @return Constant reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const + { + return m_unbounded_sequence_uint64_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_uint64_field * @return Reference to member unbounded_sequence_uint64_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field() + { + return m_unbounded_sequence_uint64_field; + } /*! @@ -4241,26 +7109,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); + const std::vector& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = _unbounded_sequence_float_field; + } /*! * @brief This function moves the value in member unbounded_sequence_float_field * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field */ eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); + std::vector&& _unbounded_sequence_float_field) + { + m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_float_field * @return Constant reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const + { + return m_unbounded_sequence_float_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_float_field * @return Reference to member unbounded_sequence_float_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_float_field() + { + return m_unbounded_sequence_float_field; + } /*! @@ -4268,26 +7148,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); + const std::vector& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = _unbounded_sequence_double_field; + } /*! * @brief This function moves the value in member unbounded_sequence_double_field * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field */ eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); + std::vector&& _unbounded_sequence_double_field) + { + m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_double_field * @return Constant reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const + { + return m_unbounded_sequence_double_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_double_field * @return Reference to member unbounded_sequence_double_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_double_field() + { + return m_unbounded_sequence_double_field; + } /*! @@ -4295,26 +7187,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); + const std::vector& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; + } /*! * @brief This function moves the value in member unbounded_sequence_bool_field * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field */ eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); + std::vector&& _unbounded_sequence_bool_field) + { + m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_bool_field * @return Constant reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const + { + return m_unbounded_sequence_bool_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_bool_field * @return Reference to member unbounded_sequence_bool_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_bool_field() + { + return m_unbounded_sequence_bool_field; + } /*! @@ -4322,26 +7226,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); + const std::vector& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum_field * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field */ eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); + std::vector&& _unbounded_sequence_enum_field) + { + m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum_field * @return Constant reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const + { + return m_unbounded_sequence_enum_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum_field * @return Reference to member unbounded_sequence_enum_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum_field() + { + return m_unbounded_sequence_enum_field; + } /*! @@ -4349,26 +7265,38 @@ class KeyedCompleteTestType * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); + const std::vector& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; + } /*! * @brief This function moves the value in member unbounded_sequence_enum2_field * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field */ eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); + std::vector&& _unbounded_sequence_enum2_field) + { + m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_enum2_field * @return Constant reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const + { + return m_unbounded_sequence_enum2_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_enum2_field * @return Reference to member unbounded_sequence_enum2_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field() + { + return m_unbounded_sequence_enum2_field; + } /*! @@ -4376,26 +7304,40 @@ class KeyedCompleteTestType * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); + const std::vector& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; + } /*! * @brief This function moves the value in member unbounded_sequence_struct_field * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field */ eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); + std::vector&& _unbounded_sequence_struct_field) + { + m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); + } /*! * @brief This function returns a constant reference to member unbounded_sequence_struct_field * @return Constant reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; + eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const + { + return m_unbounded_sequence_struct_field; + } /*! * @brief This function returns a reference to member unbounded_sequence_struct_field * @return Reference to member unbounded_sequence_struct_field */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); + eProsima_user_DllExport std::vector& unbounded_sequence_struct_field() + { + return m_unbounded_sequence_struct_field; + } + + private: @@ -4412,9 +7354,9 @@ class KeyedCompleteTestType double m_double_field{0.0}; bool m_bool_field{false}; std::string m_string_field; - eprosima::test::Color m_enum_field{eprosima::test::RED}; - eprosima::test::Material m_enum2_field{eprosima::test::WOOD}; - eprosima::test::StructType m_struct_field; + Color m_enum_field{Color::RED}; + Material m_enum2_field{Material::WOOD}; + StructType m_struct_field; eprosima::fastcdr::optional m_char_opt_field; eprosima::fastcdr::optional m_uint8_opt_field; eprosima::fastcdr::optional m_int16_opt_field; @@ -4427,9 +7369,9 @@ class KeyedCompleteTestType eprosima::fastcdr::optional m_double_opt_field; eprosima::fastcdr::optional m_bool_opt_field; eprosima::fastcdr::optional m_string_opt_field; - eprosima::fastcdr::optional m_enum_opt_field; - eprosima::fastcdr::optional m_enum2_opt_field; - eprosima::fastcdr::optional m_struct_opt_field; + eprosima::fastcdr::optional m_enum_opt_field; + eprosima::fastcdr::optional m_enum2_opt_field; + eprosima::fastcdr::optional m_struct_opt_field; std::array m_array_char_field{0}; std::array m_array_uint8_field{0}; std::array m_array_int16_field{0}; @@ -4441,9 +7383,9 @@ class KeyedCompleteTestType std::array m_array_float_field{0.0}; std::array m_array_double_field{0.0}; std::array m_array_bool_field{false}; - std::array m_array_enum_field{eprosima::test::RED}; - std::array m_array_enum2_field{eprosima::test::WOOD}; - std::array m_array_struct_field; + std::array m_array_enum_field{Color::RED}; + std::array m_array_enum2_field{Material::WOOD}; + std::array m_array_struct_field; std::vector m_bounded_sequence_char_field; std::vector m_bounded_sequence_uint8_field; std::vector m_bounded_sequence_int16_field; @@ -4455,9 +7397,9 @@ class KeyedCompleteTestType std::vector m_bounded_sequence_float_field; std::vector m_bounded_sequence_double_field; std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; + std::vector m_bounded_sequence_enum_field; + std::vector m_bounded_sequence_enum2_field; + std::vector m_bounded_sequence_struct_field; std::vector m_unbounded_sequence_char_field; std::vector m_unbounded_sequence_uint8_field; std::vector m_unbounded_sequence_int16_field; @@ -4469,9 +7411,9 @@ class KeyedCompleteTestType std::vector m_unbounded_sequence_float_field; std::vector m_unbounded_sequence_double_field; std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; + std::vector m_unbounded_sequence_enum_field; + std::vector m_unbounded_sequence_enum2_field; + std::vector m_unbounded_sequence_struct_field; }; @@ -4479,8 +7421,6 @@ class KeyedCompleteTestType } // namespace eprosima -#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_H_ - +#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_HPP_ -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python/test/types/test_modules.i b/fastdds_python/test/types/test_modules.i index 131bc5b5..50f172aa 100644 --- a/fastdds_python/test/types/test_modules.i +++ b/fastdds_python/test/types/test_modules.i @@ -40,7 +40,7 @@ %{ -#include "test_modules.h" +#include "test_modules.hpp" #include %} @@ -67,8 +67,6 @@ namespace swig { %traits_penumn(enum eprosima::test::Color); %traits_penumn(enum eprosima::test::Material); - - //////////////////////////////////////////////////////// // Binding for class eprosima::test::StructType //////////////////////////////////////////////////////// @@ -250,12 +248,6 @@ namespace swig { - - - - - - //////////////////////////////////////////////////////// // Binding for class eprosima::test::CompleteTestType //////////////////////////////////////////////////////// @@ -1539,10 +1531,6 @@ namespace swig { } } - - - - //////////////////////////////////////////////////////// // Binding for class eprosima::test::KeyedCompleteTestType //////////////////////////////////////////////////////// @@ -2838,11 +2826,8 @@ namespace swig { } - - // Include the class interfaces -%include "test_modules.h" -%include "test_modulesv1.h" +%include "test_modules.hpp" // Include the corresponding TopicDataType %include "test_modulesPubSubTypes.i" diff --git a/fastdds_python/test/types/test_modulesCdrAux.hpp b/fastdds_python/test/types/test_modulesCdrAux.hpp index f591f9ec..885637d5 100644 --- a/fastdds_python/test/types/test_modulesCdrAux.hpp +++ b/fastdds_python/test/types/test_modulesCdrAux.hpp @@ -22,13 +22,13 @@ #ifndef _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULESCDRAUX_HPP_ #define _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULESCDRAUX_HPP_ -#include "test_modules.h" +#include "test_modules.hpp" -constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_cdr_typesize {42528UL}; +constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_cdr_typesize {4620UL}; constexpr uint32_t eprosima_test_KeyedCompleteTestType_max_key_cdr_typesize {4UL}; -constexpr uint32_t eprosima_test_CompleteTestType_max_cdr_typesize {42528UL}; +constexpr uint32_t eprosima_test_CompleteTestType_max_cdr_typesize {4620UL}; constexpr uint32_t eprosima_test_CompleteTestType_max_key_cdr_typesize {0UL}; constexpr uint32_t eprosima_test_StructType_max_cdr_typesize {328UL}; @@ -41,35 +41,21 @@ namespace fastcdr { class Cdr; class CdrSizeCalculator; - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::test::StructType& data); - - - - - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::test::CompleteTestType& data); - - - - eProsima_user_DllExport void serialize_key( eprosima::fastcdr::Cdr& scdr, const eprosima::test::KeyedCompleteTestType& data); - - } // namespace fastcdr } // namespace eprosima diff --git a/fastdds_python/test/types/test_modulesCdrAux.ipp b/fastdds_python/test/types/test_modulesCdrAux.ipp index 1ae1d7f7..2d9ee11f 100644 --- a/fastdds_python/test/types/test_modulesCdrAux.ipp +++ b/fastdds_python/test/types/test_modulesCdrAux.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, @@ -226,12 +224,6 @@ void serialize_key( - - - - - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -884,10 +876,6 @@ void serialize_key( } - - - - template<> eProsima_user_DllExport size_t calculate_serialized_size( eprosima::fastcdr::CdrSizeCalculator& calculator, @@ -1623,8 +1611,6 @@ void serialize_key( - - } // namespace fastcdr } // namespace eprosima diff --git a/fastdds_python/test/types/test_modulesPubSubTypes.cxx b/fastdds_python/test/types/test_modulesPubSubTypes.cxx index 76edb1eb..b19ef5e5 100644 --- a/fastdds_python/test/types/test_modulesPubSubTypes.cxx +++ b/fastdds_python/test/types/test_modulesPubSubTypes.cxx @@ -19,11 +19,13 @@ * This file was generated by the tool fastddsgen. */ +#include "test_modulesPubSubTypes.h" +#include #include -#include "test_modulesPubSubTypes.h" #include "test_modulesCdrAux.hpp" +#include "test_modulesTypeObjectSupport.hpp" using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; @@ -31,8 +33,6 @@ using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; namespace eprosima { namespace test { - - StructTypePubSubType::StructTypePubSubType() { setName("eprosima::test::StructType"); @@ -221,11 +221,10 @@ namespace eprosima { return true; } - - - - - + void StructTypePubSubType::register_type_object_representation() const + { + register_test_modules_type_objects(); + } @@ -417,9 +416,10 @@ namespace eprosima { return true; } - - - + void CompleteTestTypePubSubType::register_type_object_representation() const + { + register_test_modules_type_objects(); + } KeyedCompleteTestTypePubSubType::KeyedCompleteTestTypePubSubType() { @@ -609,9 +609,15 @@ namespace eprosima { return true; } + void KeyedCompleteTestTypePubSubType::register_type_object_representation() const + { + register_test_modules_type_objects(); + } - } //End of namespace test + } // namespace test +} // namespace eprosima -} //End of namespace eprosima +// Include auxiliary functions like for serializing/deserializing. +#include "test_modulesCdrAux.ipp" diff --git a/fastdds_python/test/types/test_modulesPubSubTypes.h b/fastdds_python/test/types/test_modulesPubSubTypes.h index febfc9d8..cf7ed97e 100644 --- a/fastdds_python/test/types/test_modulesPubSubTypes.h +++ b/fastdds_python/test/types/test_modulesPubSubTypes.h @@ -29,7 +29,7 @@ #include #include -#include "test_modules.h" +#include "test_modules.hpp" #if !defined(GEN_API_VER) || (GEN_API_VER != 2) @@ -42,8 +42,6 @@ namespace eprosima namespace test { - - /*! * @brief This class represents the TopicDataType of the type StructType defined by the user in the IDL file. * @ingroup test_modules @@ -94,6 +92,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 { @@ -134,12 +135,6 @@ namespace eprosima - - - - - - /*! * @brief This class represents the TopicDataType of the type CompleteTestType defined by the user in the IDL file. * @ingroup test_modules @@ -190,6 +185,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 { @@ -228,10 +226,6 @@ namespace eprosima }; - - - - /*! * @brief This class represents the TopicDataType of the type KeyedCompleteTestType defined by the user in the IDL file. * @ingroup test_modules @@ -282,6 +276,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 { @@ -319,8 +316,8 @@ namespace eprosima unsigned char* m_keyBuffer; }; - } -} + } // namespace test +} // namespace eprosima #endif // _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_PUBSUBTYPES_H_ diff --git a/fastdds_python/test/types/test_modulesTypeObjectSupport.cxx b/fastdds_python/test/types/test_modulesTypeObjectSupport.cxx new file mode 100644 index 00000000..b0e64611 --- /dev/null +++ b/fastdds_python/test/types/test_modulesTypeObjectSupport.cxx @@ -0,0 +1,31333 @@ +// 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 test_modulesTypeObjectSupport.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 "test_modulesTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "test_modules.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_test_modules_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + eprosima::test::register_eprosima_test_StructType_type_identifier(); + + eprosima::test::register_eprosima_test_CompleteTestType_type_identifier(); + + eprosima::test::register_eprosima_test_KeyedCompleteTestType_type_identifier(); + + }); +} + +namespace eprosima { +namespace test { +void register_eprosima_test_StructType_type_identifier() +{ + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_eprosima_test_CompleteTestType_type_identifier() +{ + { + StructTypeFlag struct_flags_CompleteTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_CompleteTestType; + TypeIdentifierPair type_ids_CompleteTestType; + QualifiedTypeName type_name_CompleteTestType = "eprosima::test::CompleteTestType"; + eprosima::fastcdr::optional type_ann_builtin_CompleteTestType; + eprosima::fastcdr::optional ann_custom_CompleteTestType; + CompleteTypeDetail detail_CompleteTestType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_CompleteTestType, ann_custom_CompleteTestType, type_name_CompleteTestType.to_string()); + CompleteStructHeader header_CompleteTestType; + header_CompleteTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_CompleteTestType); + CompleteStructMemberSeq member_seq_CompleteTestType; + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_CompleteTestType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_string_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_struct_field; + MemberId member_id_struct_field = 0x0000000e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_field = "struct_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_struct_field = TypeObjectUtils::build_complete_member_detail(name_struct_field, member_ann_builtin_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_struct_field = TypeObjectUtils::build_complete_struct_member(common_struct_field, detail_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_char_opt_field; + MemberId member_id_char_opt_field = 0x0000000f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_opt_field = "char_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_char_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_char_opt_field; + eprosima::fastcdr::optional unit_char_opt_field; + eprosima::fastcdr::optional min_char_opt_field; + eprosima::fastcdr::optional max_char_opt_field; + eprosima::fastcdr::optional hash_id_char_opt_field; + if (unit_char_opt_field.has_value() || min_char_opt_field.has_value() || max_char_opt_field.has_value() || hash_id_char_opt_field.has_value()) + { + member_ann_builtin_char_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_char_opt_field, min_char_opt_field, max_char_opt_field, hash_id_char_opt_field); + } + if (!tmp_ann_custom_char_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_char_opt_field; + } + CompleteMemberDetail detail_char_opt_field = TypeObjectUtils::build_complete_member_detail(name_char_opt_field, member_ann_builtin_char_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_char_opt_field = TypeObjectUtils::build_complete_struct_member(common_char_opt_field, detail_char_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_char_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint8_opt_field; + MemberId member_id_uint8_opt_field = 0x00000010; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_opt_field = "uint8_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint8_opt_field; + eprosima::fastcdr::optional unit_uint8_opt_field; + eprosima::fastcdr::optional min_uint8_opt_field; + eprosima::fastcdr::optional max_uint8_opt_field; + eprosima::fastcdr::optional hash_id_uint8_opt_field; + if (unit_uint8_opt_field.has_value() || min_uint8_opt_field.has_value() || max_uint8_opt_field.has_value() || hash_id_uint8_opt_field.has_value()) + { + member_ann_builtin_uint8_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint8_opt_field, min_uint8_opt_field, max_uint8_opt_field, hash_id_uint8_opt_field); + } + if (!tmp_ann_custom_uint8_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint8_opt_field; + } + CompleteMemberDetail detail_uint8_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint8_opt_field, member_ann_builtin_uint8_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint8_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint8_opt_field, detail_uint8_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint8_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int16_opt_field; + MemberId member_id_int16_opt_field = 0x00000011; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_opt_field = "int16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int16_opt_field; + eprosima::fastcdr::optional unit_int16_opt_field; + eprosima::fastcdr::optional min_int16_opt_field; + eprosima::fastcdr::optional max_int16_opt_field; + eprosima::fastcdr::optional hash_id_int16_opt_field; + if (unit_int16_opt_field.has_value() || min_int16_opt_field.has_value() || max_int16_opt_field.has_value() || hash_id_int16_opt_field.has_value()) + { + member_ann_builtin_int16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int16_opt_field, min_int16_opt_field, max_int16_opt_field, hash_id_int16_opt_field); + } + if (!tmp_ann_custom_int16_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int16_opt_field; + } + CompleteMemberDetail detail_int16_opt_field = TypeObjectUtils::build_complete_member_detail(name_int16_opt_field, member_ann_builtin_int16_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int16_opt_field = TypeObjectUtils::build_complete_struct_member(common_int16_opt_field, detail_int16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int16_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint16_opt_field; + MemberId member_id_uint16_opt_field = 0x00000012; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_opt_field = "uint16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint16_opt_field; + eprosima::fastcdr::optional unit_uint16_opt_field; + eprosima::fastcdr::optional min_uint16_opt_field; + eprosima::fastcdr::optional max_uint16_opt_field; + eprosima::fastcdr::optional hash_id_uint16_opt_field; + if (unit_uint16_opt_field.has_value() || min_uint16_opt_field.has_value() || max_uint16_opt_field.has_value() || hash_id_uint16_opt_field.has_value()) + { + member_ann_builtin_uint16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint16_opt_field, min_uint16_opt_field, max_uint16_opt_field, hash_id_uint16_opt_field); + } + if (!tmp_ann_custom_uint16_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint16_opt_field; + } + CompleteMemberDetail detail_uint16_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint16_opt_field, member_ann_builtin_uint16_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint16_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint16_opt_field, detail_uint16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint16_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int32_opt_field; + MemberId member_id_int32_opt_field = 0x00000013; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_opt_field = "int32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int32_opt_field; + eprosima::fastcdr::optional unit_int32_opt_field; + eprosima::fastcdr::optional min_int32_opt_field; + eprosima::fastcdr::optional max_int32_opt_field; + eprosima::fastcdr::optional hash_id_int32_opt_field; + if (unit_int32_opt_field.has_value() || min_int32_opt_field.has_value() || max_int32_opt_field.has_value() || hash_id_int32_opt_field.has_value()) + { + member_ann_builtin_int32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int32_opt_field, min_int32_opt_field, max_int32_opt_field, hash_id_int32_opt_field); + } + if (!tmp_ann_custom_int32_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int32_opt_field; + } + CompleteMemberDetail detail_int32_opt_field = TypeObjectUtils::build_complete_member_detail(name_int32_opt_field, member_ann_builtin_int32_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int32_opt_field = TypeObjectUtils::build_complete_struct_member(common_int32_opt_field, detail_int32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int32_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint32_opt_field; + MemberId member_id_uint32_opt_field = 0x00000014; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_opt_field = "uint32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint32_opt_field; + eprosima::fastcdr::optional unit_uint32_opt_field; + eprosima::fastcdr::optional min_uint32_opt_field; + eprosima::fastcdr::optional max_uint32_opt_field; + eprosima::fastcdr::optional hash_id_uint32_opt_field; + if (unit_uint32_opt_field.has_value() || min_uint32_opt_field.has_value() || max_uint32_opt_field.has_value() || hash_id_uint32_opt_field.has_value()) + { + member_ann_builtin_uint32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint32_opt_field, min_uint32_opt_field, max_uint32_opt_field, hash_id_uint32_opt_field); + } + if (!tmp_ann_custom_uint32_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint32_opt_field; + } + CompleteMemberDetail detail_uint32_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint32_opt_field, member_ann_builtin_uint32_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint32_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint32_opt_field, detail_uint32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint32_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int64_opt_field; + MemberId member_id_int64_opt_field = 0x00000015; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_opt_field = "int64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int64_opt_field; + eprosima::fastcdr::optional unit_int64_opt_field; + eprosima::fastcdr::optional min_int64_opt_field; + eprosima::fastcdr::optional max_int64_opt_field; + eprosima::fastcdr::optional hash_id_int64_opt_field; + if (unit_int64_opt_field.has_value() || min_int64_opt_field.has_value() || max_int64_opt_field.has_value() || hash_id_int64_opt_field.has_value()) + { + member_ann_builtin_int64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int64_opt_field, min_int64_opt_field, max_int64_opt_field, hash_id_int64_opt_field); + } + if (!tmp_ann_custom_int64_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_int64_opt_field; + } + CompleteMemberDetail detail_int64_opt_field = TypeObjectUtils::build_complete_member_detail(name_int64_opt_field, member_ann_builtin_int64_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_int64_opt_field = TypeObjectUtils::build_complete_struct_member(common_int64_opt_field, detail_int64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_int64_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint64_opt_field; + MemberId member_id_uint64_opt_field = 0x00000016; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_opt_field = "uint64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint64_opt_field; + eprosima::fastcdr::optional unit_uint64_opt_field; + eprosima::fastcdr::optional min_uint64_opt_field; + eprosima::fastcdr::optional max_uint64_opt_field; + eprosima::fastcdr::optional hash_id_uint64_opt_field; + if (unit_uint64_opt_field.has_value() || min_uint64_opt_field.has_value() || max_uint64_opt_field.has_value() || hash_id_uint64_opt_field.has_value()) + { + member_ann_builtin_uint64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint64_opt_field, min_uint64_opt_field, max_uint64_opt_field, hash_id_uint64_opt_field); + } + if (!tmp_ann_custom_uint64_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_uint64_opt_field; + } + CompleteMemberDetail detail_uint64_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint64_opt_field, member_ann_builtin_uint64_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_uint64_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint64_opt_field, detail_uint64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_uint64_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_float_opt_field; + MemberId member_id_float_opt_field = 0x00000017; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_opt_field = "float_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_float_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_float_opt_field; + eprosima::fastcdr::optional unit_float_opt_field; + eprosima::fastcdr::optional min_float_opt_field; + eprosima::fastcdr::optional max_float_opt_field; + eprosima::fastcdr::optional hash_id_float_opt_field; + if (unit_float_opt_field.has_value() || min_float_opt_field.has_value() || max_float_opt_field.has_value() || hash_id_float_opt_field.has_value()) + { + member_ann_builtin_float_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_float_opt_field, min_float_opt_field, max_float_opt_field, hash_id_float_opt_field); + } + if (!tmp_ann_custom_float_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_float_opt_field; + } + CompleteMemberDetail detail_float_opt_field = TypeObjectUtils::build_complete_member_detail(name_float_opt_field, member_ann_builtin_float_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_float_opt_field = TypeObjectUtils::build_complete_struct_member(common_float_opt_field, detail_float_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_float_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_double_opt_field; + MemberId member_id_double_opt_field = 0x00000018; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_opt_field = "double_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_double_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_double_opt_field; + eprosima::fastcdr::optional unit_double_opt_field; + eprosima::fastcdr::optional min_double_opt_field; + eprosima::fastcdr::optional max_double_opt_field; + eprosima::fastcdr::optional hash_id_double_opt_field; + if (unit_double_opt_field.has_value() || min_double_opt_field.has_value() || max_double_opt_field.has_value() || hash_id_double_opt_field.has_value()) + { + member_ann_builtin_double_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_double_opt_field, min_double_opt_field, max_double_opt_field, hash_id_double_opt_field); + } + if (!tmp_ann_custom_double_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_double_opt_field; + } + CompleteMemberDetail detail_double_opt_field = TypeObjectUtils::build_complete_member_detail(name_double_opt_field, member_ann_builtin_double_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_double_opt_field = TypeObjectUtils::build_complete_struct_member(common_double_opt_field, detail_double_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_double_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_bool_opt_field; + MemberId member_id_bool_opt_field = 0x00000019; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_opt_field = "bool_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_bool_opt_field; + eprosima::fastcdr::optional unit_bool_opt_field; + eprosima::fastcdr::optional min_bool_opt_field; + eprosima::fastcdr::optional max_bool_opt_field; + eprosima::fastcdr::optional hash_id_bool_opt_field; + if (unit_bool_opt_field.has_value() || min_bool_opt_field.has_value() || max_bool_opt_field.has_value() || hash_id_bool_opt_field.has_value()) + { + member_ann_builtin_bool_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_bool_opt_field, min_bool_opt_field, max_bool_opt_field, hash_id_bool_opt_field); + } + if (!tmp_ann_custom_bool_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_bool_opt_field; + } + CompleteMemberDetail detail_bool_opt_field = TypeObjectUtils::build_complete_member_detail(name_bool_opt_field, member_ann_builtin_bool_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_bool_opt_field = TypeObjectUtils::build_complete_struct_member(common_bool_opt_field, detail_bool_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bool_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_string_opt_field; + MemberId member_id_string_opt_field = 0x0000001a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_opt_field = "string_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_string_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_string_opt_field; + eprosima::fastcdr::optional unit_string_opt_field; + eprosima::fastcdr::optional min_string_opt_field; + eprosima::fastcdr::optional max_string_opt_field; + eprosima::fastcdr::optional hash_id_string_opt_field; + if (unit_string_opt_field.has_value() || min_string_opt_field.has_value() || max_string_opt_field.has_value() || hash_id_string_opt_field.has_value()) + { + member_ann_builtin_string_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_string_opt_field, min_string_opt_field, max_string_opt_field, hash_id_string_opt_field); + } + if (!tmp_ann_custom_string_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_string_opt_field; + } + CompleteMemberDetail detail_string_opt_field = TypeObjectUtils::build_complete_member_detail(name_string_opt_field, member_ann_builtin_string_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_string_opt_field = TypeObjectUtils::build_complete_struct_member(common_string_opt_field, detail_string_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_string_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum_opt_field; + MemberId member_id_enum_opt_field = 0x0000001b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_opt_field = "enum_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum_opt_field; + eprosima::fastcdr::optional unit_enum_opt_field; + eprosima::fastcdr::optional min_enum_opt_field; + eprosima::fastcdr::optional max_enum_opt_field; + eprosima::fastcdr::optional hash_id_enum_opt_field; + if (unit_enum_opt_field.has_value() || min_enum_opt_field.has_value() || max_enum_opt_field.has_value() || hash_id_enum_opt_field.has_value()) + { + member_ann_builtin_enum_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum_opt_field, min_enum_opt_field, max_enum_opt_field, hash_id_enum_opt_field); + } + if (!tmp_ann_custom_enum_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_enum_opt_field; + } + CompleteMemberDetail detail_enum_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum_opt_field, member_ann_builtin_enum_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum_opt_field, detail_enum_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum2_opt_field; + MemberId member_id_enum2_opt_field = 0x0000001c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_opt_field = "enum2_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum2_opt_field; + eprosima::fastcdr::optional unit_enum2_opt_field; + eprosima::fastcdr::optional min_enum2_opt_field; + eprosima::fastcdr::optional max_enum2_opt_field; + eprosima::fastcdr::optional hash_id_enum2_opt_field; + if (unit_enum2_opt_field.has_value() || min_enum2_opt_field.has_value() || max_enum2_opt_field.has_value() || hash_id_enum2_opt_field.has_value()) + { + member_ann_builtin_enum2_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum2_opt_field, min_enum2_opt_field, max_enum2_opt_field, hash_id_enum2_opt_field); + } + if (!tmp_ann_custom_enum2_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_enum2_opt_field; + } + CompleteMemberDetail detail_enum2_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum2_opt_field, member_ann_builtin_enum2_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_enum2_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum2_opt_field, detail_enum2_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_enum2_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_struct_opt_field; + MemberId member_id_struct_opt_field = 0x0000001d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_opt_field = "struct_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_opt_field; + ann_custom_CompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_struct_opt_field; + eprosima::fastcdr::optional unit_struct_opt_field; + eprosima::fastcdr::optional min_struct_opt_field; + eprosima::fastcdr::optional max_struct_opt_field; + eprosima::fastcdr::optional hash_id_struct_opt_field; + if (unit_struct_opt_field.has_value() || min_struct_opt_field.has_value() || max_struct_opt_field.has_value() || hash_id_struct_opt_field.has_value()) + { + member_ann_builtin_struct_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_struct_opt_field, min_struct_opt_field, max_struct_opt_field, hash_id_struct_opt_field); + } + if (!tmp_ann_custom_struct_opt_field.empty()) + { + ann_custom_CompleteTestType = tmp_ann_custom_struct_opt_field; + } + CompleteMemberDetail detail_struct_opt_field = TypeObjectUtils::build_complete_member_detail(name_struct_opt_field, member_ann_builtin_struct_opt_field, ann_custom_CompleteTestType); + CompleteStructMember member_struct_opt_field = TypeObjectUtils::build_complete_struct_member(common_struct_opt_field, detail_struct_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_struct_opt_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_char_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_3 = 0; + PlainCollectionHeader header_anonymous_array_char_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_3, element_flags_anonymous_array_char_3); + std::string type_id_kind_anonymous_array_char_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_char_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_char_field; + MemberId member_id_array_char_field = 0x0000001e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_char_field = "array_char_field"; + eprosima::fastcdr::optional member_ann_builtin_array_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_char_field = TypeObjectUtils::build_complete_member_detail(name_array_char_field, member_ann_builtin_array_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_char_field = TypeObjectUtils::build_complete_struct_member(common_array_char_field, detail_array_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint8_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint8_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint8_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint8_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_3, element_flags_anonymous_array_uint8_t_3); + std::string type_id_kind_anonymous_array_uint8_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint8_field; + MemberId member_id_array_uint8_field = 0x0000001f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint8_field = "array_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint8_field = TypeObjectUtils::build_complete_member_detail(name_array_uint8_field, member_ann_builtin_array_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint8_field = TypeObjectUtils::build_complete_struct_member(common_array_uint8_field, detail_array_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_3, element_flags_anonymous_array_int16_t_3); + std::string type_id_kind_anonymous_array_int16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int16_field; + MemberId member_id_array_int16_field = 0x00000020; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int16_field = "array_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int16_field = TypeObjectUtils::build_complete_member_detail(name_array_int16_field, member_ann_builtin_array_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int16_field = TypeObjectUtils::build_complete_struct_member(common_array_int16_field, detail_array_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint16_t_3, element_flags_anonymous_array_uint16_t_3); + std::string type_id_kind_anonymous_array_uint16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint16_field; + MemberId member_id_array_uint16_field = 0x00000021; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint16_field = "array_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint16_field = TypeObjectUtils::build_complete_member_detail(name_array_uint16_field, member_ann_builtin_array_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint16_field = TypeObjectUtils::build_complete_struct_member(common_array_uint16_field, detail_array_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int32_t_3, element_flags_anonymous_array_int32_t_3); + std::string type_id_kind_anonymous_array_int32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int32_field; + MemberId member_id_array_int32_field = 0x00000022; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int32_field = "array_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int32_field = TypeObjectUtils::build_complete_member_detail(name_array_int32_field, member_ann_builtin_array_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int32_field = TypeObjectUtils::build_complete_struct_member(common_array_int32_field, detail_array_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint32_t_3, element_flags_anonymous_array_uint32_t_3); + std::string type_id_kind_anonymous_array_uint32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint32_field; + MemberId member_id_array_uint32_field = 0x00000023; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint32_field = "array_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint32_field = TypeObjectUtils::build_complete_member_detail(name_array_uint32_field, member_ann_builtin_array_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint32_field = TypeObjectUtils::build_complete_struct_member(common_array_uint32_field, detail_array_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int64_t_3, element_flags_anonymous_array_int64_t_3); + std::string type_id_kind_anonymous_array_int64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int64_field; + MemberId member_id_array_int64_field = 0x00000024; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int64_field = "array_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_int64_field = TypeObjectUtils::build_complete_member_detail(name_array_int64_field, member_ann_builtin_array_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_int64_field = TypeObjectUtils::build_complete_struct_member(common_array_int64_field, detail_array_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint64_t_3, element_flags_anonymous_array_uint64_t_3); + std::string type_id_kind_anonymous_array_uint64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint64_field; + MemberId member_id_array_uint64_field = 0x00000025; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint64_field = "array_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_uint64_field = TypeObjectUtils::build_complete_member_detail(name_array_uint64_field, member_ann_builtin_array_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_uint64_field = TypeObjectUtils::build_complete_struct_member(common_array_uint64_field, detail_array_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_float_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_float_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_float_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_float_3 = 0; + PlainCollectionHeader header_anonymous_array_float_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_float_3, element_flags_anonymous_array_float_3); + std::string type_id_kind_anonymous_array_float_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_float_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_float_field; + MemberId member_id_array_float_field = 0x00000026; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_float_field = "array_float_field"; + eprosima::fastcdr::optional member_ann_builtin_array_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_float_field = TypeObjectUtils::build_complete_member_detail(name_array_float_field, member_ann_builtin_array_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_float_field = TypeObjectUtils::build_complete_struct_member(common_array_float_field, detail_array_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_double_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_double_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_double_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_double_3 = 0; + PlainCollectionHeader header_anonymous_array_double_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_double_3, element_flags_anonymous_array_double_3); + std::string type_id_kind_anonymous_array_double_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_double_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_double_field; + MemberId member_id_array_double_field = 0x00000027; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_double_field = "array_double_field"; + eprosima::fastcdr::optional member_ann_builtin_array_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_double_field = TypeObjectUtils::build_complete_member_detail(name_array_double_field, member_ann_builtin_array_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_double_field = TypeObjectUtils::build_complete_struct_member(common_array_double_field, detail_array_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_bool_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_bool_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_bool_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_bool_3 = 0; + PlainCollectionHeader header_anonymous_array_bool_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_bool_3, element_flags_anonymous_array_bool_3); + std::string type_id_kind_anonymous_array_bool_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_bool_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_bool_field; + MemberId member_id_array_bool_field = 0x00000028; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_bool_field = "array_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_array_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_bool_field = TypeObjectUtils::build_complete_member_detail(name_array_bool_field, member_ann_builtin_array_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_bool_field = TypeObjectUtils::build_complete_struct_member(common_array_bool_field, detail_array_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Color_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_Color_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Color_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Color_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_Color_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_Color_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_Color_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_Color_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_Color_3, element_flags_anonymous_array_eprosima_test_Color_3); + std::string type_id_kind_anonymous_array_eprosima_test_Color_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_Color_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Color_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum_field; + MemberId member_id_array_enum_field = 0x00000029; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum_field = "array_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_enum_field = TypeObjectUtils::build_complete_member_detail(name_array_enum_field, member_ann_builtin_array_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_enum_field = TypeObjectUtils::build_complete_struct_member(common_array_enum_field, detail_array_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Material_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_Material_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Material_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Material_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_Material_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_Material_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_Material_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_Material_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_Material_3, element_flags_anonymous_array_eprosima_test_Material_3); + std::string type_id_kind_anonymous_array_eprosima_test_Material_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_Material_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Material_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum2_field; + MemberId member_id_array_enum2_field = 0x0000002a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum2_field = "array_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_enum2_field = TypeObjectUtils::build_complete_member_detail(name_array_enum2_field, member_ann_builtin_array_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_enum2_field = TypeObjectUtils::build_complete_struct_member(common_array_enum2_field, detail_array_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_StructType_3", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_StructType_3 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_StructType_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_StructType_3 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_StructType_3 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_StructType_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_StructType_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_StructType_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_StructType_3, element_flags_anonymous_array_eprosima_test_StructType_3); + std::string type_id_kind_anonymous_array_eprosima_test_StructType_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_StructType_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_StructType_3", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_struct_field; + MemberId member_id_array_struct_field = 0x0000002b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_struct_field = "array_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_array_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_array_struct_field = TypeObjectUtils::build_complete_member_detail(name_array_struct_field, member_ann_builtin_array_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_array_struct_field = TypeObjectUtils::build_complete_struct_member(common_array_struct_field, detail_array_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_array_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_5 = 0; + PlainCollectionHeader header_anonymous_sequence_char_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_5, element_flags_anonymous_sequence_char_5); + std::string type_id_kind_anonymous_sequence_char_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_char_field; + MemberId member_id_bounded_sequence_char_field = 0x0000002c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_char_field = "bounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_char_field, member_ann_builtin_bounded_sequence_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_char_field, detail_bounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint8_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint8_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint8_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_5, element_flags_anonymous_sequence_uint8_t_5); + std::string type_id_kind_anonymous_sequence_uint8_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint8_field; + MemberId member_id_bounded_sequence_uint8_field = 0x0000002d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint8_field = "bounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint8_field, member_ann_builtin_bounded_sequence_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint8_field, detail_bounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_5, element_flags_anonymous_sequence_int16_t_5); + std::string type_id_kind_anonymous_sequence_int16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int16_field; + MemberId member_id_bounded_sequence_int16_field = 0x0000002e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int16_field = "bounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int16_field, member_ann_builtin_bounded_sequence_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int16_field, detail_bounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_5, element_flags_anonymous_sequence_uint16_t_5); + std::string type_id_kind_anonymous_sequence_uint16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint16_field; + MemberId member_id_bounded_sequence_uint16_field = 0x0000002f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint16_field = "bounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint16_field, member_ann_builtin_bounded_sequence_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint16_field, detail_bounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_5, element_flags_anonymous_sequence_int32_t_5); + std::string type_id_kind_anonymous_sequence_int32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int32_field; + MemberId member_id_bounded_sequence_int32_field = 0x00000030; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int32_field = "bounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int32_field, member_ann_builtin_bounded_sequence_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int32_field, detail_bounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_5, element_flags_anonymous_sequence_uint32_t_5); + std::string type_id_kind_anonymous_sequence_uint32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint32_field; + MemberId member_id_bounded_sequence_uint32_field = 0x00000031; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint32_field = "bounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint32_field, member_ann_builtin_bounded_sequence_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint32_field, detail_bounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_5, element_flags_anonymous_sequence_int64_t_5); + std::string type_id_kind_anonymous_sequence_int64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int64_field; + MemberId member_id_bounded_sequence_int64_field = 0x00000032; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int64_field = "bounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int64_field, member_ann_builtin_bounded_sequence_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int64_field, detail_bounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_5, element_flags_anonymous_sequence_uint64_t_5); + std::string type_id_kind_anonymous_sequence_uint64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint64_field; + MemberId member_id_bounded_sequence_uint64_field = 0x00000033; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint64_field = "bounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint64_field, member_ann_builtin_bounded_sequence_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint64_field, detail_bounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_5 = 0; + PlainCollectionHeader header_anonymous_sequence_float_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_5, element_flags_anonymous_sequence_float_5); + std::string type_id_kind_anonymous_sequence_float_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_float_field; + MemberId member_id_bounded_sequence_float_field = 0x00000034; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_float_field = "bounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_float_field, member_ann_builtin_bounded_sequence_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_float_field, detail_bounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_5 = 0; + PlainCollectionHeader header_anonymous_sequence_double_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_5, element_flags_anonymous_sequence_double_5); + std::string type_id_kind_anonymous_sequence_double_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_double_field; + MemberId member_id_bounded_sequence_double_field = 0x00000035; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_double_field = "bounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_double_field, member_ann_builtin_bounded_sequence_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_double_field, detail_bounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_5 = 0; + PlainCollectionHeader header_anonymous_sequence_bool_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_5, element_flags_anonymous_sequence_bool_5); + std::string type_id_kind_anonymous_sequence_bool_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_bool_field; + MemberId member_id_bounded_sequence_bool_field = 0x00000036; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_bool_field = "bounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_bool_field, member_ann_builtin_bounded_sequence_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_bool_field, detail_bounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Color_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Color_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Color_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Color_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Color_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Color_5, element_flags_anonymous_sequence_eprosima_test_Color_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_Color_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Color_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum_field; + MemberId member_id_bounded_sequence_enum_field = 0x00000037; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum_field = "bounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum_field, member_ann_builtin_bounded_sequence_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum_field, detail_bounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Material_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Material_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Material_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Material_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Material_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Material_5, element_flags_anonymous_sequence_eprosima_test_Material_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_Material_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Material_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum2_field; + MemberId member_id_bounded_sequence_enum2_field = 0x00000038; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum2_field = "bounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum2_field, member_ann_builtin_bounded_sequence_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum2_field, detail_bounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_5", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_StructType_5 {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_5 = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_StructType_5 = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_StructType_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_StructType_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_StructType_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_StructType_5, element_flags_anonymous_sequence_eprosima_test_StructType_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_StructType_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_StructType_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_5", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_struct_field; + MemberId member_id_bounded_sequence_struct_field = 0x00000039; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_struct_field = "bounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_struct_field, member_ann_builtin_bounded_sequence_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_bounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_struct_field, detail_bounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_bounded_sequence_struct_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_char_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_unbounded, element_flags_anonymous_sequence_char_unbounded); + std::string type_id_kind_anonymous_sequence_char_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_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_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_char_field; + MemberId member_id_unbounded_sequence_char_field = 0x0000003a; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_char_field = "unbounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_char_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_char_field, member_ann_builtin_unbounded_sequence_char_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_char_field, detail_unbounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_char_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != 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_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.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_CompleteTestType.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_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint8_field; + MemberId member_id_unbounded_sequence_uint8_field = 0x0000003b; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint8_field = "unbounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint8_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint8_field, member_ann_builtin_unbounded_sequence_uint8_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint8_field, detail_unbounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint8_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + std::string type_id_kind_anonymous_sequence_int16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int16_field; + MemberId member_id_unbounded_sequence_int16_field = 0x0000003c; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int16_field = "unbounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int16_field, member_ann_builtin_unbounded_sequence_int16_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int16_field, detail_unbounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_unbounded, element_flags_anonymous_sequence_uint16_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_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_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint16_field; + MemberId member_id_unbounded_sequence_uint16_field = 0x0000003d; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint16_field = "unbounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint16_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint16_field, member_ann_builtin_unbounded_sequence_uint16_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint16_field, detail_unbounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint16_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_unbounded, element_flags_anonymous_sequence_int32_t_unbounded); + std::string type_id_kind_anonymous_sequence_int32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int32_field; + MemberId member_id_unbounded_sequence_int32_field = 0x0000003e; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int32_field = "unbounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int32_field, member_ann_builtin_unbounded_sequence_int32_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int32_field, detail_unbounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_unbounded, element_flags_anonymous_sequence_uint32_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_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_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint32_field; + MemberId member_id_unbounded_sequence_uint32_field = 0x0000003f; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint32_field = "unbounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint32_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint32_field, member_ann_builtin_unbounded_sequence_uint32_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint32_field, detail_unbounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint32_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_unbounded, element_flags_anonymous_sequence_int64_t_unbounded); + std::string type_id_kind_anonymous_sequence_int64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_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_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int64_field; + MemberId member_id_unbounded_sequence_int64_field = 0x00000040; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int64_field = "unbounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int64_field, member_ann_builtin_unbounded_sequence_int64_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int64_field, detail_unbounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_int64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_unbounded, element_flags_anonymous_sequence_uint64_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_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_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint64_field; + MemberId member_id_unbounded_sequence_uint64_field = 0x00000041; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint64_field = "unbounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint64_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint64_field, member_ann_builtin_unbounded_sequence_uint64_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint64_field, detail_unbounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_uint64_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_float_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_unbounded, element_flags_anonymous_sequence_float_unbounded); + std::string type_id_kind_anonymous_sequence_float_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_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_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_float_field; + MemberId member_id_unbounded_sequence_float_field = 0x00000042; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_float_field = "unbounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_float_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_float_field, member_ann_builtin_unbounded_sequence_float_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_float_field, detail_unbounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_float_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_double_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_unbounded, element_flags_anonymous_sequence_double_unbounded); + std::string type_id_kind_anonymous_sequence_double_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_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_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_double_field; + MemberId member_id_unbounded_sequence_double_field = 0x00000043; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_double_field = "unbounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_double_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_double_field, member_ann_builtin_unbounded_sequence_double_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_double_field, detail_unbounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_double_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_bool_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_unbounded, element_flags_anonymous_sequence_bool_unbounded); + std::string type_id_kind_anonymous_sequence_bool_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_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_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_bool_field; + MemberId member_id_unbounded_sequence_bool_field = 0x00000044; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_bool_field = "unbounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_bool_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_bool_field, member_ann_builtin_unbounded_sequence_bool_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_bool_field, detail_unbounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_bool_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Color_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Color_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Color_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded, element_flags_anonymous_sequence_eprosima_test_Color_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_Color_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Color_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_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_test_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum_field; + MemberId member_id_unbounded_sequence_enum_field = 0x00000045; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum_field = "unbounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum_field, member_ann_builtin_unbounded_sequence_enum_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum_field, detail_unbounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_enum_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Material_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Material_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Material_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded, element_flags_anonymous_sequence_eprosima_test_Material_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_Material_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Material_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_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_test_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum2_field; + MemberId member_id_unbounded_sequence_enum2_field = 0x00000046; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum2_field = "unbounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum2_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum2_field, member_ann_builtin_unbounded_sequence_enum2_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum2_field, detail_unbounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_enum2_field); + } + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_unbounded", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_CompleteTestType); + + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded = new TypeIdentifier(type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_CompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_StructType_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_StructType_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded, element_flags_anonymous_sequence_eprosima_test_StructType_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_StructType_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_StructType_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_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_test_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_unbounded", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_struct_field; + MemberId member_id_unbounded_sequence_struct_field = 0x00000047; + if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_CompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_CompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_CompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_struct_field = "unbounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_struct_field; + ann_custom_CompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_struct_field, member_ann_builtin_unbounded_sequence_struct_field, ann_custom_CompleteTestType); + CompleteStructMember member_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_struct_field, detail_unbounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_CompleteTestType, member_unbounded_sequence_struct_field); + } + CompleteStructType struct_type_CompleteTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_CompleteTestType, header_CompleteTestType, member_seq_CompleteTestType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_CompleteTestType, type_name_CompleteTestType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::CompleteTestType already registered in TypeObjectRegistry for a different type."); + } + return_code_CompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::CompleteTestType", type_ids_CompleteTestType); + if (return_code_CompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::CompleteTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} +void register_eprosima_test_KeyedCompleteTestType_type_identifier() +{ + { + StructTypeFlag struct_flags_KeyedCompleteTestType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_KeyedCompleteTestType; + TypeIdentifierPair type_ids_KeyedCompleteTestType; + QualifiedTypeName type_name_KeyedCompleteTestType = "eprosima::test::KeyedCompleteTestType"; + eprosima::fastcdr::optional type_ann_builtin_KeyedCompleteTestType; + eprosima::fastcdr::optional ann_custom_KeyedCompleteTestType; + CompleteTypeDetail detail_KeyedCompleteTestType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_KeyedCompleteTestType, ann_custom_KeyedCompleteTestType, type_name_KeyedCompleteTestType.to_string()); + CompleteStructHeader header_KeyedCompleteTestType; + header_KeyedCompleteTestType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_KeyedCompleteTestType); + CompleteStructMemberSeq member_seq_KeyedCompleteTestType; + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "id Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_id = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, true, false); + CommonStructMember common_id; + MemberId member_id_id = 0x00000000; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_id = TypeObjectUtils::build_common_struct_member(member_id_id, member_flags_id, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_id = TypeObjectUtils::build_common_struct_member(member_id_id, member_flags_id, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure id member TypeIdentifier inconsistent."); + return; + } + MemberName name_id = "id"; + eprosima::fastcdr::optional member_ann_builtin_id; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_id; + eprosima::fastcdr::optional unit_id; + eprosima::fastcdr::optional min_id; + eprosima::fastcdr::optional max_id; + eprosima::fastcdr::optional hash_id_id; + if (unit_id.has_value() || min_id.has_value() || max_id.has_value() || hash_id_id.has_value()) + { + member_ann_builtin_id = TypeObjectUtils::build_applied_builtin_member_annotations(unit_id, min_id, max_id, hash_id_id); + } + if (!tmp_ann_custom_id.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_id; + } + CompleteMemberDetail detail_id = TypeObjectUtils::build_complete_member_detail(name_id, member_ann_builtin_id, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_id = TypeObjectUtils::build_complete_struct_member(common_id, detail_id); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_id); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000001; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000002; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000003; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000004; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000005; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000006; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000007; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000008; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000009; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x0000000a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_string_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_struct_field; + MemberId member_id_struct_field = 0x0000000f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_field = TypeObjectUtils::build_common_struct_member(member_id_struct_field, member_flags_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_field = "struct_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_struct_field = TypeObjectUtils::build_complete_member_detail(name_struct_field, member_ann_builtin_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_struct_field = TypeObjectUtils::build_complete_struct_member(common_struct_field, detail_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_char_opt_field; + MemberId member_id_char_opt_field = 0x00000010; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_opt_field = TypeObjectUtils::build_common_struct_member(member_id_char_opt_field, member_flags_char_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_opt_field = "char_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_char_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_char_opt_field; + eprosima::fastcdr::optional unit_char_opt_field; + eprosima::fastcdr::optional min_char_opt_field; + eprosima::fastcdr::optional max_char_opt_field; + eprosima::fastcdr::optional hash_id_char_opt_field; + if (unit_char_opt_field.has_value() || min_char_opt_field.has_value() || max_char_opt_field.has_value() || hash_id_char_opt_field.has_value()) + { + member_ann_builtin_char_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_char_opt_field, min_char_opt_field, max_char_opt_field, hash_id_char_opt_field); + } + if (!tmp_ann_custom_char_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_char_opt_field; + } + CompleteMemberDetail detail_char_opt_field = TypeObjectUtils::build_complete_member_detail(name_char_opt_field, member_ann_builtin_char_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_char_opt_field = TypeObjectUtils::build_complete_struct_member(common_char_opt_field, detail_char_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_char_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint8_opt_field; + MemberId member_id_uint8_opt_field = 0x00000011; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_opt_field, member_flags_uint8_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_opt_field = "uint8_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint8_opt_field; + eprosima::fastcdr::optional unit_uint8_opt_field; + eprosima::fastcdr::optional min_uint8_opt_field; + eprosima::fastcdr::optional max_uint8_opt_field; + eprosima::fastcdr::optional hash_id_uint8_opt_field; + if (unit_uint8_opt_field.has_value() || min_uint8_opt_field.has_value() || max_uint8_opt_field.has_value() || hash_id_uint8_opt_field.has_value()) + { + member_ann_builtin_uint8_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint8_opt_field, min_uint8_opt_field, max_uint8_opt_field, hash_id_uint8_opt_field); + } + if (!tmp_ann_custom_uint8_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint8_opt_field; + } + CompleteMemberDetail detail_uint8_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint8_opt_field, member_ann_builtin_uint8_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint8_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint8_opt_field, detail_uint8_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint8_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int16_opt_field; + MemberId member_id_int16_opt_field = 0x00000012; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int16_opt_field, member_flags_int16_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_opt_field = "int16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int16_opt_field; + eprosima::fastcdr::optional unit_int16_opt_field; + eprosima::fastcdr::optional min_int16_opt_field; + eprosima::fastcdr::optional max_int16_opt_field; + eprosima::fastcdr::optional hash_id_int16_opt_field; + if (unit_int16_opt_field.has_value() || min_int16_opt_field.has_value() || max_int16_opt_field.has_value() || hash_id_int16_opt_field.has_value()) + { + member_ann_builtin_int16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int16_opt_field, min_int16_opt_field, max_int16_opt_field, hash_id_int16_opt_field); + } + if (!tmp_ann_custom_int16_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int16_opt_field; + } + CompleteMemberDetail detail_int16_opt_field = TypeObjectUtils::build_complete_member_detail(name_int16_opt_field, member_ann_builtin_int16_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int16_opt_field = TypeObjectUtils::build_complete_struct_member(common_int16_opt_field, detail_int16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int16_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint16_opt_field; + MemberId member_id_uint16_opt_field = 0x00000013; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_opt_field, member_flags_uint16_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_opt_field = "uint16_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint16_opt_field; + eprosima::fastcdr::optional unit_uint16_opt_field; + eprosima::fastcdr::optional min_uint16_opt_field; + eprosima::fastcdr::optional max_uint16_opt_field; + eprosima::fastcdr::optional hash_id_uint16_opt_field; + if (unit_uint16_opt_field.has_value() || min_uint16_opt_field.has_value() || max_uint16_opt_field.has_value() || hash_id_uint16_opt_field.has_value()) + { + member_ann_builtin_uint16_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint16_opt_field, min_uint16_opt_field, max_uint16_opt_field, hash_id_uint16_opt_field); + } + if (!tmp_ann_custom_uint16_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint16_opt_field; + } + CompleteMemberDetail detail_uint16_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint16_opt_field, member_ann_builtin_uint16_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint16_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint16_opt_field, detail_uint16_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint16_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int32_opt_field; + MemberId member_id_int32_opt_field = 0x00000014; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int32_opt_field, member_flags_int32_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_opt_field = "int32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int32_opt_field; + eprosima::fastcdr::optional unit_int32_opt_field; + eprosima::fastcdr::optional min_int32_opt_field; + eprosima::fastcdr::optional max_int32_opt_field; + eprosima::fastcdr::optional hash_id_int32_opt_field; + if (unit_int32_opt_field.has_value() || min_int32_opt_field.has_value() || max_int32_opt_field.has_value() || hash_id_int32_opt_field.has_value()) + { + member_ann_builtin_int32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int32_opt_field, min_int32_opt_field, max_int32_opt_field, hash_id_int32_opt_field); + } + if (!tmp_ann_custom_int32_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int32_opt_field; + } + CompleteMemberDetail detail_int32_opt_field = TypeObjectUtils::build_complete_member_detail(name_int32_opt_field, member_ann_builtin_int32_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int32_opt_field = TypeObjectUtils::build_complete_struct_member(common_int32_opt_field, detail_int32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int32_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint32_opt_field; + MemberId member_id_uint32_opt_field = 0x00000015; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_opt_field, member_flags_uint32_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_opt_field = "uint32_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint32_opt_field; + eprosima::fastcdr::optional unit_uint32_opt_field; + eprosima::fastcdr::optional min_uint32_opt_field; + eprosima::fastcdr::optional max_uint32_opt_field; + eprosima::fastcdr::optional hash_id_uint32_opt_field; + if (unit_uint32_opt_field.has_value() || min_uint32_opt_field.has_value() || max_uint32_opt_field.has_value() || hash_id_uint32_opt_field.has_value()) + { + member_ann_builtin_uint32_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint32_opt_field, min_uint32_opt_field, max_uint32_opt_field, hash_id_uint32_opt_field); + } + if (!tmp_ann_custom_uint32_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint32_opt_field; + } + CompleteMemberDetail detail_uint32_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint32_opt_field, member_ann_builtin_uint32_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint32_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint32_opt_field, detail_uint32_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint32_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_int64_opt_field; + MemberId member_id_int64_opt_field = 0x00000016; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_int64_opt_field, member_flags_int64_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_opt_field = "int64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_int64_opt_field; + eprosima::fastcdr::optional unit_int64_opt_field; + eprosima::fastcdr::optional min_int64_opt_field; + eprosima::fastcdr::optional max_int64_opt_field; + eprosima::fastcdr::optional hash_id_int64_opt_field; + if (unit_int64_opt_field.has_value() || min_int64_opt_field.has_value() || max_int64_opt_field.has_value() || hash_id_int64_opt_field.has_value()) + { + member_ann_builtin_int64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_int64_opt_field, min_int64_opt_field, max_int64_opt_field, hash_id_int64_opt_field); + } + if (!tmp_ann_custom_int64_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_int64_opt_field; + } + CompleteMemberDetail detail_int64_opt_field = TypeObjectUtils::build_complete_member_detail(name_int64_opt_field, member_ann_builtin_int64_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_int64_opt_field = TypeObjectUtils::build_complete_struct_member(common_int64_opt_field, detail_int64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_int64_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_uint64_opt_field; + MemberId member_id_uint64_opt_field = 0x00000017; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_opt_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_opt_field, member_flags_uint64_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_opt_field = "uint64_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_uint64_opt_field; + eprosima::fastcdr::optional unit_uint64_opt_field; + eprosima::fastcdr::optional min_uint64_opt_field; + eprosima::fastcdr::optional max_uint64_opt_field; + eprosima::fastcdr::optional hash_id_uint64_opt_field; + if (unit_uint64_opt_field.has_value() || min_uint64_opt_field.has_value() || max_uint64_opt_field.has_value() || hash_id_uint64_opt_field.has_value()) + { + member_ann_builtin_uint64_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_uint64_opt_field, min_uint64_opt_field, max_uint64_opt_field, hash_id_uint64_opt_field); + } + if (!tmp_ann_custom_uint64_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_uint64_opt_field; + } + CompleteMemberDetail detail_uint64_opt_field = TypeObjectUtils::build_complete_member_detail(name_uint64_opt_field, member_ann_builtin_uint64_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_uint64_opt_field = TypeObjectUtils::build_complete_struct_member(common_uint64_opt_field, detail_uint64_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_uint64_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_float_opt_field; + MemberId member_id_float_opt_field = 0x00000018; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_opt_field = TypeObjectUtils::build_common_struct_member(member_id_float_opt_field, member_flags_float_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_opt_field = "float_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_float_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_float_opt_field; + eprosima::fastcdr::optional unit_float_opt_field; + eprosima::fastcdr::optional min_float_opt_field; + eprosima::fastcdr::optional max_float_opt_field; + eprosima::fastcdr::optional hash_id_float_opt_field; + if (unit_float_opt_field.has_value() || min_float_opt_field.has_value() || max_float_opt_field.has_value() || hash_id_float_opt_field.has_value()) + { + member_ann_builtin_float_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_float_opt_field, min_float_opt_field, max_float_opt_field, hash_id_float_opt_field); + } + if (!tmp_ann_custom_float_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_float_opt_field; + } + CompleteMemberDetail detail_float_opt_field = TypeObjectUtils::build_complete_member_detail(name_float_opt_field, member_ann_builtin_float_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_float_opt_field = TypeObjectUtils::build_complete_struct_member(common_float_opt_field, detail_float_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_float_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_double_opt_field; + MemberId member_id_double_opt_field = 0x00000019; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_opt_field = TypeObjectUtils::build_common_struct_member(member_id_double_opt_field, member_flags_double_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_opt_field = "double_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_double_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_double_opt_field; + eprosima::fastcdr::optional unit_double_opt_field; + eprosima::fastcdr::optional min_double_opt_field; + eprosima::fastcdr::optional max_double_opt_field; + eprosima::fastcdr::optional hash_id_double_opt_field; + if (unit_double_opt_field.has_value() || min_double_opt_field.has_value() || max_double_opt_field.has_value() || hash_id_double_opt_field.has_value()) + { + member_ann_builtin_double_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_double_opt_field, min_double_opt_field, max_double_opt_field, hash_id_double_opt_field); + } + if (!tmp_ann_custom_double_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_double_opt_field; + } + CompleteMemberDetail detail_double_opt_field = TypeObjectUtils::build_complete_member_detail(name_double_opt_field, member_ann_builtin_double_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_double_opt_field = TypeObjectUtils::build_complete_struct_member(common_double_opt_field, detail_double_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_double_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_opt_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_bool_opt_field; + MemberId member_id_bool_opt_field = 0x0000001a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_opt_field = TypeObjectUtils::build_common_struct_member(member_id_bool_opt_field, member_flags_bool_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_opt_field = "bool_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_bool_opt_field; + eprosima::fastcdr::optional unit_bool_opt_field; + eprosima::fastcdr::optional min_bool_opt_field; + eprosima::fastcdr::optional max_bool_opt_field; + eprosima::fastcdr::optional hash_id_bool_opt_field; + if (unit_bool_opt_field.has_value() || min_bool_opt_field.has_value() || max_bool_opt_field.has_value() || hash_id_bool_opt_field.has_value()) + { + member_ann_builtin_bool_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_bool_opt_field, min_bool_opt_field, max_bool_opt_field, hash_id_bool_opt_field); + } + if (!tmp_ann_custom_bool_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_bool_opt_field; + } + CompleteMemberDetail detail_bool_opt_field = TypeObjectUtils::build_complete_member_detail(name_bool_opt_field, member_ann_builtin_bool_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bool_opt_field = TypeObjectUtils::build_complete_struct_member(common_bool_opt_field, detail_bool_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bool_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_string_opt_field; + MemberId member_id_string_opt_field = 0x0000001b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_opt_field = TypeObjectUtils::build_common_struct_member(member_id_string_opt_field, member_flags_string_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_opt_field = "string_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_string_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_string_opt_field; + eprosima::fastcdr::optional unit_string_opt_field; + eprosima::fastcdr::optional min_string_opt_field; + eprosima::fastcdr::optional max_string_opt_field; + eprosima::fastcdr::optional hash_id_string_opt_field; + if (unit_string_opt_field.has_value() || min_string_opt_field.has_value() || max_string_opt_field.has_value() || hash_id_string_opt_field.has_value()) + { + member_ann_builtin_string_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_string_opt_field, min_string_opt_field, max_string_opt_field, hash_id_string_opt_field); + } + if (!tmp_ann_custom_string_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_string_opt_field; + } + CompleteMemberDetail detail_string_opt_field = TypeObjectUtils::build_complete_member_detail(name_string_opt_field, member_ann_builtin_string_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_string_opt_field = TypeObjectUtils::build_complete_struct_member(common_string_opt_field, detail_string_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_string_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum_opt_field; + MemberId member_id_enum_opt_field = 0x0000001c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum_opt_field, member_flags_enum_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_opt_field = "enum_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum_opt_field; + eprosima::fastcdr::optional unit_enum_opt_field; + eprosima::fastcdr::optional min_enum_opt_field; + eprosima::fastcdr::optional max_enum_opt_field; + eprosima::fastcdr::optional hash_id_enum_opt_field; + if (unit_enum_opt_field.has_value() || min_enum_opt_field.has_value() || max_enum_opt_field.has_value() || hash_id_enum_opt_field.has_value()) + { + member_ann_builtin_enum_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum_opt_field, min_enum_opt_field, max_enum_opt_field, hash_id_enum_opt_field); + } + if (!tmp_ann_custom_enum_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_enum_opt_field; + } + CompleteMemberDetail detail_enum_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum_opt_field, member_ann_builtin_enum_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum_opt_field, detail_enum_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_enum2_opt_field; + MemberId member_id_enum2_opt_field = 0x0000001d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_opt_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_opt_field, member_flags_enum2_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_opt_field = "enum2_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_enum2_opt_field; + eprosima::fastcdr::optional unit_enum2_opt_field; + eprosima::fastcdr::optional min_enum2_opt_field; + eprosima::fastcdr::optional max_enum2_opt_field; + eprosima::fastcdr::optional hash_id_enum2_opt_field; + if (unit_enum2_opt_field.has_value() || min_enum2_opt_field.has_value() || max_enum2_opt_field.has_value() || hash_id_enum2_opt_field.has_value()) + { + member_ann_builtin_enum2_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_enum2_opt_field, min_enum2_opt_field, max_enum2_opt_field, hash_id_enum2_opt_field); + } + if (!tmp_ann_custom_enum2_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_enum2_opt_field; + } + CompleteMemberDetail detail_enum2_opt_field = TypeObjectUtils::build_complete_member_detail(name_enum2_opt_field, member_ann_builtin_enum2_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_enum2_opt_field = TypeObjectUtils::build_complete_struct_member(common_enum2_opt_field, detail_enum2_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_enum2_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + StructMemberFlag member_flags_struct_opt_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + true, false, false, false); + CommonStructMember common_struct_opt_field; + MemberId member_id_struct_opt_field = 0x0000001e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_struct_opt_field = TypeObjectUtils::build_common_struct_member(member_id_struct_opt_field, member_flags_struct_opt_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure struct_opt_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_struct_opt_field = "struct_opt_field"; + eprosima::fastcdr::optional member_ann_builtin_struct_opt_field; + ann_custom_KeyedCompleteTestType.reset(); + AppliedAnnotationSeq tmp_ann_custom_struct_opt_field; + eprosima::fastcdr::optional unit_struct_opt_field; + eprosima::fastcdr::optional min_struct_opt_field; + eprosima::fastcdr::optional max_struct_opt_field; + eprosima::fastcdr::optional hash_id_struct_opt_field; + if (unit_struct_opt_field.has_value() || min_struct_opt_field.has_value() || max_struct_opt_field.has_value() || hash_id_struct_opt_field.has_value()) + { + member_ann_builtin_struct_opt_field = TypeObjectUtils::build_applied_builtin_member_annotations(unit_struct_opt_field, min_struct_opt_field, max_struct_opt_field, hash_id_struct_opt_field); + } + if (!tmp_ann_custom_struct_opt_field.empty()) + { + ann_custom_KeyedCompleteTestType = tmp_ann_custom_struct_opt_field; + } + CompleteMemberDetail detail_struct_opt_field = TypeObjectUtils::build_complete_member_detail(name_struct_opt_field, member_ann_builtin_struct_opt_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_struct_opt_field = TypeObjectUtils::build_complete_struct_member(common_struct_opt_field, detail_struct_opt_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_struct_opt_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_char_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_char_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_char_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_char_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_char_3 = 0; + PlainCollectionHeader header_anonymous_array_char_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_char_3, element_flags_anonymous_array_char_3); + std::string type_id_kind_anonymous_array_char_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_char_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_char_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_char_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_char_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_char_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_char_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_char_field; + MemberId member_id_array_char_field = 0x0000001f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_char_field = TypeObjectUtils::build_common_struct_member(member_id_array_char_field, member_flags_array_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_char_field = "array_char_field"; + eprosima::fastcdr::optional member_ann_builtin_array_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_char_field = TypeObjectUtils::build_complete_member_detail(name_array_char_field, member_ann_builtin_array_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_char_field = TypeObjectUtils::build_complete_struct_member(common_array_char_field, detail_array_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint8_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint8_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint8_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint8_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint8_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint8_t_3, element_flags_anonymous_array_uint8_t_3); + std::string type_id_kind_anonymous_array_uint8_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint8_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint8_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint8_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint8_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint8_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint8_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint8_field; + MemberId member_id_array_uint8_field = 0x00000020; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint8_field, member_flags_array_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint8_field = "array_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint8_field = TypeObjectUtils::build_complete_member_detail(name_array_uint8_field, member_ann_builtin_array_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint8_field = TypeObjectUtils::build_complete_struct_member(common_array_uint8_field, detail_array_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int16_t_3, element_flags_anonymous_array_int16_t_3); + std::string type_id_kind_anonymous_array_int16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int16_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int16_field; + MemberId member_id_array_int16_field = 0x00000021; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int16_field = TypeObjectUtils::build_common_struct_member(member_id_array_int16_field, member_flags_array_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int16_field = "array_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int16_field = TypeObjectUtils::build_complete_member_detail(name_array_int16_field, member_ann_builtin_array_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int16_field = TypeObjectUtils::build_complete_struct_member(common_array_int16_field, detail_array_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint16_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint16_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint16_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint16_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint16_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint16_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint16_t_3, element_flags_anonymous_array_uint16_t_3); + std::string type_id_kind_anonymous_array_uint16_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint16_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint16_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint16_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint16_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint16_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint16_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint16_field; + MemberId member_id_array_uint16_field = 0x00000022; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint16_field, member_flags_array_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint16_field = "array_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint16_field = TypeObjectUtils::build_complete_member_detail(name_array_uint16_field, member_ann_builtin_array_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint16_field = TypeObjectUtils::build_complete_struct_member(common_array_uint16_field, detail_array_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int32_t_3, element_flags_anonymous_array_int32_t_3); + std::string type_id_kind_anonymous_array_int32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int32_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int32_field; + MemberId member_id_array_int32_field = 0x00000023; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int32_field = TypeObjectUtils::build_common_struct_member(member_id_array_int32_field, member_flags_array_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int32_field = "array_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int32_field = TypeObjectUtils::build_complete_member_detail(name_array_int32_field, member_ann_builtin_array_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int32_field = TypeObjectUtils::build_complete_struct_member(common_array_int32_field, detail_array_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint32_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint32_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint32_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint32_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint32_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint32_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint32_t_3, element_flags_anonymous_array_uint32_t_3); + std::string type_id_kind_anonymous_array_uint32_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint32_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint32_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint32_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint32_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint32_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint32_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint32_field; + MemberId member_id_array_uint32_field = 0x00000024; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint32_field, member_flags_array_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint32_field = "array_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint32_field = TypeObjectUtils::build_complete_member_detail(name_array_uint32_field, member_ann_builtin_array_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint32_field = TypeObjectUtils::build_complete_struct_member(common_array_uint32_field, detail_array_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_int64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_int64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_int64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_int64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_int64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_int64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_int64_t_3, element_flags_anonymous_array_int64_t_3); + std::string type_id_kind_anonymous_array_int64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_int64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_int64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_int64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_int64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_int64_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_int64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_int64_field; + MemberId member_id_array_int64_field = 0x00000025; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_int64_field = TypeObjectUtils::build_common_struct_member(member_id_array_int64_field, member_flags_array_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_int64_field = "array_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_int64_field = TypeObjectUtils::build_complete_member_detail(name_array_int64_field, member_ann_builtin_array_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_int64_field = TypeObjectUtils::build_complete_struct_member(common_array_int64_field, detail_array_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_uint64_t_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_uint64_t_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_uint64_t_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_uint64_t_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_uint64_t_3 = 0; + PlainCollectionHeader header_anonymous_array_uint64_t_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_uint64_t_3, element_flags_anonymous_array_uint64_t_3); + std::string type_id_kind_anonymous_array_uint64_t_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_uint64_t_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_uint64_t_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_uint64_t_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_uint64_t_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_uint64_t_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_uint64_t_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_uint64_field; + MemberId member_id_array_uint64_field = 0x00000026; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_array_uint64_field, member_flags_array_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_uint64_field = "array_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_array_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_uint64_field = TypeObjectUtils::build_complete_member_detail(name_array_uint64_field, member_ann_builtin_array_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_uint64_field = TypeObjectUtils::build_complete_struct_member(common_array_uint64_field, detail_array_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_float_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_float_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_float_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_float_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_float_3 = 0; + PlainCollectionHeader header_anonymous_array_float_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_float_3, element_flags_anonymous_array_float_3); + std::string type_id_kind_anonymous_array_float_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_float_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_float_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_float_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_float_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_float_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_float_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_float_field; + MemberId member_id_array_float_field = 0x00000027; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_float_field = TypeObjectUtils::build_common_struct_member(member_id_array_float_field, member_flags_array_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_float_field = "array_float_field"; + eprosima::fastcdr::optional member_ann_builtin_array_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_float_field = TypeObjectUtils::build_complete_member_detail(name_array_float_field, member_ann_builtin_array_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_float_field = TypeObjectUtils::build_complete_struct_member(common_array_float_field, detail_array_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_double_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_double_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_double_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_double_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_double_3 = 0; + PlainCollectionHeader header_anonymous_array_double_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_double_3, element_flags_anonymous_array_double_3); + std::string type_id_kind_anonymous_array_double_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_double_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_double_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_double_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_double_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_double_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_double_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_double_field; + MemberId member_id_array_double_field = 0x00000028; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_double_field = TypeObjectUtils::build_common_struct_member(member_id_array_double_field, member_flags_array_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_double_field = "array_double_field"; + eprosima::fastcdr::optional member_ann_builtin_array_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_double_field = TypeObjectUtils::build_complete_member_detail(name_array_double_field, member_ann_builtin_array_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_double_field = TypeObjectUtils::build_complete_struct_member(common_array_double_field, detail_array_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_array_bool_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_bool_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_bool_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_bool_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_bool_3 = 0; + PlainCollectionHeader header_anonymous_array_bool_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_bool_3, element_flags_anonymous_array_bool_3); + std::string type_id_kind_anonymous_array_bool_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_bool_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_bool_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_bool_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_bool_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_bool_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_bool_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_bool_field; + MemberId member_id_array_bool_field = 0x00000029; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_bool_field = TypeObjectUtils::build_common_struct_member(member_id_array_bool_field, member_flags_array_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_bool_field = "array_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_array_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_bool_field = TypeObjectUtils::build_complete_member_detail(name_array_bool_field, member_ann_builtin_array_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_bool_field = TypeObjectUtils::build_complete_struct_member(common_array_bool_field, detail_array_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Color_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_Color_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Color_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Color_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_Color_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_Color_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_Color_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_Color_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_Color_3, element_flags_anonymous_array_eprosima_test_Color_3); + std::string type_id_kind_anonymous_array_eprosima_test_Color_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_Color_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_Color_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Color_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_Color_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Color_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Color_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum_field; + MemberId member_id_array_enum_field = 0x0000002a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum_field, member_flags_array_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum_field = "array_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_enum_field = TypeObjectUtils::build_complete_member_detail(name_array_enum_field, member_ann_builtin_array_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_enum_field = TypeObjectUtils::build_complete_struct_member(common_array_enum_field, detail_array_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Material_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_Material_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Material_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_Material_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_Material_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_Material_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_Material_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_Material_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_Material_3, element_flags_anonymous_array_eprosima_test_Material_3); + std::string type_id_kind_anonymous_array_eprosima_test_Material_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_Material_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_Material_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_Material_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_Material_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_Material_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_Material_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_enum2_field; + MemberId member_id_array_enum2_field = 0x0000002b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_array_enum2_field, member_flags_array_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_enum2_field = "array_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_array_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_enum2_field = TypeObjectUtils::build_complete_member_detail(name_array_enum2_field, member_ann_builtin_array_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_enum2_field = TypeObjectUtils::build_complete_struct_member(common_array_enum2_field, detail_array_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_StructType_3", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_array_eprosima_test_StructType_3 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_StructType_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_array_eprosima_test_StructType_3 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Array element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_array_eprosima_test_StructType_3 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_array_eprosima_test_StructType_3 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_array_eprosima_test_StructType_3 = 0; + PlainCollectionHeader header_anonymous_array_eprosima_test_StructType_3 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_array_eprosima_test_StructType_3, element_flags_anonymous_array_eprosima_test_StructType_3); + std::string type_id_kind_anonymous_array_eprosima_test_StructType_3("TI_PLAIN_ARRAY_SMALL"); + if (type_id_kind_anonymous_array_eprosima_test_StructType_3 == "TI_PLAIN_ARRAY_SMALL") + { + SBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArraySElemDefn array_sdefn = TypeObjectUtils::build_plain_array_s_elem_defn(header_anonymous_array_eprosima_test_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_array_type_identifier(array_sdefn, "anonymous_array_eprosima_test_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBoundSeq array_bound_seq; + TypeObjectUtils::add_array_dimension(array_bound_seq, static_cast(3)); + + PlainArrayLElemDefn array_ldefn = TypeObjectUtils::build_plain_array_l_elem_defn(header_anonymous_array_eprosima_test_StructType_3, array_bound_seq, + eprosima::fastcdr::external(element_identifier_anonymous_array_eprosima_test_StructType_3)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_array_type_identifier(array_ldefn, "anonymous_array_eprosima_test_StructType_3")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_array_eprosima_test_StructType_3", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_array_eprosima_test_StructType_3: Given Array TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_array_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_array_struct_field; + MemberId member_id_array_struct_field = 0x0000002c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_array_struct_field = TypeObjectUtils::build_common_struct_member(member_id_array_struct_field, member_flags_array_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure array_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_array_struct_field = "array_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_array_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_array_struct_field = TypeObjectUtils::build_complete_member_detail(name_array_struct_field, member_ann_builtin_array_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_array_struct_field = TypeObjectUtils::build_complete_struct_member(common_array_struct_field, detail_array_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_array_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_5 = 0; + PlainCollectionHeader header_anonymous_sequence_char_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_5, element_flags_anonymous_sequence_char_5); + std::string type_id_kind_anonymous_sequence_char_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_char_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_char_field; + MemberId member_id_bounded_sequence_char_field = 0x0000002d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_char_field, member_flags_bounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_char_field = "bounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_char_field, member_ann_builtin_bounded_sequence_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_char_field, detail_bounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint8_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint8_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint8_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint8_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint8_t_5, element_flags_anonymous_sequence_uint8_t_5); + std::string type_id_kind_anonymous_sequence_uint8_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint8_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint8_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint8_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint8_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint8_field; + MemberId member_id_bounded_sequence_uint8_field = 0x0000002e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint8_field, member_flags_bounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint8_field = "bounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint8_field, member_ann_builtin_bounded_sequence_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint8_field, detail_bounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_5, element_flags_anonymous_sequence_int16_t_5); + std::string type_id_kind_anonymous_sequence_int16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int16_field; + MemberId member_id_bounded_sequence_int16_field = 0x0000002f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int16_field, member_flags_bounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int16_field = "bounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int16_field, member_ann_builtin_bounded_sequence_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int16_field, detail_bounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_5, element_flags_anonymous_sequence_uint16_t_5); + std::string type_id_kind_anonymous_sequence_uint16_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint16_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint16_field; + MemberId member_id_bounded_sequence_uint16_field = 0x00000030; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint16_field, member_flags_bounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint16_field = "bounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint16_field, member_ann_builtin_bounded_sequence_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint16_field, detail_bounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_5, element_flags_anonymous_sequence_int32_t_5); + std::string type_id_kind_anonymous_sequence_int32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int32_field; + MemberId member_id_bounded_sequence_int32_field = 0x00000031; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int32_field, member_flags_bounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int32_field = "bounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int32_field, member_ann_builtin_bounded_sequence_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int32_field, detail_bounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_5, element_flags_anonymous_sequence_uint32_t_5); + std::string type_id_kind_anonymous_sequence_uint32_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint32_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint32_field; + MemberId member_id_bounded_sequence_uint32_field = 0x00000032; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint32_field, member_flags_bounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint32_field = "bounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint32_field, member_ann_builtin_bounded_sequence_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint32_field, detail_bounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_5, element_flags_anonymous_sequence_int64_t_5); + std::string type_id_kind_anonymous_sequence_int64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_int64_field; + MemberId member_id_bounded_sequence_int64_field = 0x00000033; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_int64_field, member_flags_bounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_int64_field = "bounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_int64_field, member_ann_builtin_bounded_sequence_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_int64_field, detail_bounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_5 = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_5, element_flags_anonymous_sequence_uint64_t_5); + std::string type_id_kind_anonymous_sequence_uint64_t_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_uint64_t_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_uint64_field; + MemberId member_id_bounded_sequence_uint64_field = 0x00000034; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_uint64_field, member_flags_bounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_uint64_field = "bounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_uint64_field, member_ann_builtin_bounded_sequence_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_uint64_field, detail_bounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_5 = 0; + PlainCollectionHeader header_anonymous_sequence_float_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_5, element_flags_anonymous_sequence_float_5); + std::string type_id_kind_anonymous_sequence_float_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_float_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_float_field; + MemberId member_id_bounded_sequence_float_field = 0x00000035; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_float_field, member_flags_bounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_float_field = "bounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_float_field, member_ann_builtin_bounded_sequence_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_float_field, detail_bounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_5 = 0; + PlainCollectionHeader header_anonymous_sequence_double_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_5, element_flags_anonymous_sequence_double_5); + std::string type_id_kind_anonymous_sequence_double_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_double_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_double_field; + MemberId member_id_bounded_sequence_double_field = 0x00000036; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_double_field, member_flags_bounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_double_field = "bounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_double_field, member_ann_builtin_bounded_sequence_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_double_field, detail_bounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_5 = 0; + PlainCollectionHeader header_anonymous_sequence_bool_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_5, element_flags_anonymous_sequence_bool_5); + std::string type_id_kind_anonymous_sequence_bool_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_bool_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_bool_field; + MemberId member_id_bounded_sequence_bool_field = 0x00000037; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_bool_field, member_flags_bounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_bool_field = "bounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_bool_field, member_ann_builtin_bounded_sequence_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_bool_field, detail_bounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Color_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Color_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Color_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Color_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Color_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Color_5, element_flags_anonymous_sequence_eprosima_test_Color_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_Color_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Color_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_Color_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Color_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum_field; + MemberId member_id_bounded_sequence_enum_field = 0x00000038; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum_field, member_flags_bounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum_field = "bounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum_field, member_ann_builtin_bounded_sequence_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum_field, detail_bounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Material_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Material_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Material_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Material_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Material_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Material_5, element_flags_anonymous_sequence_eprosima_test_Material_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_Material_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Material_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_Material_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Material_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_enum2_field; + MemberId member_id_bounded_sequence_enum2_field = 0x00000039; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_enum2_field, member_flags_bounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_enum2_field = "bounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_enum2_field, member_ann_builtin_bounded_sequence_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_enum2_field, detail_bounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_5", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_StructType_5 {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_5 = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_StructType_5 = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_StructType_5 = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_StructType_5 = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_StructType_5 = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_StructType_5, element_flags_anonymous_sequence_eprosima_test_StructType_5); + std::string type_id_kind_anonymous_sequence_eprosima_test_StructType_5("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_StructType_5 == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = static_cast(5); + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 5; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_eprosima_test_StructType_5, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_5)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_StructType_5")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5 already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_5", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_5: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_bounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bounded_sequence_struct_field; + MemberId member_id_bounded_sequence_struct_field = 0x0000003a; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_bounded_sequence_struct_field, member_flags_bounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bounded_sequence_struct_field = "bounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_bounded_sequence_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_bounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_bounded_sequence_struct_field, member_ann_builtin_bounded_sequence_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_bounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_bounded_sequence_struct_field, detail_bounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_bounded_sequence_struct_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_char_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_char_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_char_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_char_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_char_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_char_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_char_unbounded, element_flags_anonymous_sequence_char_unbounded); + std::string type_id_kind_anonymous_sequence_char_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_char_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_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_char_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_char_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_char_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_char_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_char_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_char_field; + MemberId member_id_unbounded_sequence_char_field = 0x0000003b; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_char_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_char_field, member_flags_unbounded_sequence_char_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_char_field = "unbounded_sequence_char_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_char_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_char_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_char_field, member_ann_builtin_unbounded_sequence_char_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_char_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_char_field, detail_unbounded_sequence_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_char_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != 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_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint8_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.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_KeyedCompleteTestType.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_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint8_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint8_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint8_field; + MemberId member_id_unbounded_sequence_uint8_field = 0x0000003c; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint8_field, member_flags_unbounded_sequence_uint8_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint8_field = "unbounded_sequence_uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint8_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint8_field, member_ann_builtin_unbounded_sequence_uint8_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint8_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint8_field, detail_unbounded_sequence_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint8_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int16_t_unbounded, element_flags_anonymous_sequence_int16_t_unbounded); + std::string type_id_kind_anonymous_sequence_int16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int16_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int16_field; + MemberId member_id_unbounded_sequence_int16_field = 0x0000003d; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int16_field, member_flags_unbounded_sequence_int16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int16_field = "unbounded_sequence_int16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int16_field, member_ann_builtin_unbounded_sequence_int16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int16_field, detail_unbounded_sequence_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint16_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint16_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint16_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint16_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint16_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint16_t_unbounded, element_flags_anonymous_sequence_uint16_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint16_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint16_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_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_uint16_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint16_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint16_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint16_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint16_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint16_field; + MemberId member_id_unbounded_sequence_uint16_field = 0x0000003e; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint16_field, member_flags_unbounded_sequence_uint16_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint16_field = "unbounded_sequence_uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint16_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint16_field, member_ann_builtin_unbounded_sequence_uint16_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint16_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint16_field, detail_unbounded_sequence_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint16_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int32_t_unbounded, element_flags_anonymous_sequence_int32_t_unbounded); + std::string type_id_kind_anonymous_sequence_int32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + else + { + LBound bound = 0; + PlainSequenceLElemDefn seq_ldefn = TypeObjectUtils::build_plain_sequence_l_elem_defn(header_anonymous_sequence_int32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int32_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int32_field; + MemberId member_id_unbounded_sequence_int32_field = 0x0000003f; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int32_field, member_flags_unbounded_sequence_int32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int32_field = "unbounded_sequence_int32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int32_field, member_ann_builtin_unbounded_sequence_int32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int32_field, detail_unbounded_sequence_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint32_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint32_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint32_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint32_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint32_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint32_t_unbounded, element_flags_anonymous_sequence_uint32_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint32_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint32_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_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_uint32_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint32_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint32_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint32_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint32_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint32_field; + MemberId member_id_unbounded_sequence_uint32_field = 0x00000040; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint32_field, member_flags_unbounded_sequence_uint32_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint32_field = "unbounded_sequence_uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint32_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint32_field, member_ann_builtin_unbounded_sequence_uint32_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint32_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint32_field, detail_unbounded_sequence_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint32_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_int64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_int64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_int64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_int64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_int64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_int64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_int64_t_unbounded, element_flags_anonymous_sequence_int64_t_unbounded); + std::string type_id_kind_anonymous_sequence_int64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_int64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_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_int64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_int64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_int64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_int64_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_int64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_int64_field; + MemberId member_id_unbounded_sequence_int64_field = 0x00000041; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_int64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_int64_field, member_flags_unbounded_sequence_int64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_int64_field = "unbounded_sequence_int64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_int64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_int64_field, member_ann_builtin_unbounded_sequence_int64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_int64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_int64_field, detail_unbounded_sequence_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_int64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_uint64_t_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_uint64_t_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_uint64_t_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_uint64_t_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_uint64_t_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_uint64_t_unbounded, element_flags_anonymous_sequence_uint64_t_unbounded); + std::string type_id_kind_anonymous_sequence_uint64_t_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_uint64_t_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_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_uint64_t_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_uint64_t_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_uint64_t_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_uint64_t_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_uint64_t_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_uint64_field; + MemberId member_id_unbounded_sequence_uint64_field = 0x00000042; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_uint64_field, member_flags_unbounded_sequence_uint64_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_uint64_field = "unbounded_sequence_uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_uint64_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_uint64_field, member_ann_builtin_unbounded_sequence_uint64_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_uint64_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_uint64_field, detail_unbounded_sequence_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_uint64_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_float_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_float_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_float_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_float_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_float_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_float_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_float_unbounded, element_flags_anonymous_sequence_float_unbounded); + std::string type_id_kind_anonymous_sequence_float_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_float_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_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_float_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_float_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_float_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_float_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_float_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_float_field; + MemberId member_id_unbounded_sequence_float_field = 0x00000043; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_float_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_float_field, member_flags_unbounded_sequence_float_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_float_field = "unbounded_sequence_float_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_float_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_float_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_float_field, member_ann_builtin_unbounded_sequence_float_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_float_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_float_field, detail_unbounded_sequence_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_float_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_double_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_double_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_double_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_double_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_double_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_double_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_double_unbounded, element_flags_anonymous_sequence_double_unbounded); + std::string type_id_kind_anonymous_sequence_double_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_double_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_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_double_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_double_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_double_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_double_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_double_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_double_field; + MemberId member_id_unbounded_sequence_double_field = 0x00000044; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_double_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_double_field, member_flags_unbounded_sequence_double_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_double_field = "unbounded_sequence_double_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_double_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_double_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_double_field, member_ann_builtin_unbounded_sequence_double_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_double_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_double_field, detail_unbounded_sequence_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_double_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + TypeIdentifier* element_identifier_anonymous_sequence_bool_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_bool_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_bool_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_bool_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_bool_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_bool_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_bool_unbounded, element_flags_anonymous_sequence_bool_unbounded); + std::string type_id_kind_anonymous_sequence_bool_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_bool_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_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_bool_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_bool_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_bool_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_bool_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_bool_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_bool_field; + MemberId member_id_unbounded_sequence_bool_field = 0x00000045; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_bool_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_bool_field, member_flags_unbounded_sequence_bool_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_bool_field = "unbounded_sequence_bool_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_bool_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_bool_field, member_ann_builtin_unbounded_sequence_bool_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_bool_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_bool_field, detail_unbounded_sequence_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_bool_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Color_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Color_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Color_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Color_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Color_unbounded, element_flags_anonymous_sequence_eprosima_test_Color_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_Color_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Color_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_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_test_Color_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Color_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Color_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Color_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Color_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum_field; + MemberId member_id_unbounded_sequence_enum_field = 0x00000046; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum_field, member_flags_unbounded_sequence_enum_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum_field = "unbounded_sequence_enum_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum_field, member_ann_builtin_unbounded_sequence_enum_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_enum_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum_field, detail_unbounded_sequence_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_enum_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_Material_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_Material_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_Material_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_Material_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_Material_unbounded, element_flags_anonymous_sequence_eprosima_test_Material_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_Material_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_Material_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_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_test_Material_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_Material_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_Material_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_Material_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_Material_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_enum2_field; + MemberId member_id_unbounded_sequence_enum2_field = 0x00000047; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_enum2_field, member_flags_unbounded_sequence_enum2_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_enum2_field = "unbounded_sequence_enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_enum2_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_enum2_field, member_ann_builtin_unbounded_sequence_enum2_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_enum2_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_enum2_field, detail_unbounded_sequence_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_enum2_field); + } + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_unbounded", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_KeyedCompleteTestType); + + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + { + StructTypeFlag struct_flags_StructType = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_StructType; + TypeIdentifierPair type_ids_StructType; + QualifiedTypeName type_name_StructType = "eprosima::test::StructType"; + eprosima::fastcdr::optional type_ann_builtin_StructType; + eprosima::fastcdr::optional ann_custom_StructType; + CompleteTypeDetail detail_StructType = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_StructType, ann_custom_StructType, type_name_StructType.to_string()); + CompleteStructHeader header_StructType; + header_StructType = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_StructType); + CompleteStructMemberSeq member_seq_StructType; + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_char", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "char_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_char_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_char_field; + MemberId member_id_char_field = 0x00000000; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_char_field = TypeObjectUtils::build_common_struct_member(member_id_char_field, member_flags_char_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure char_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_char_field = "char_field"; + eprosima::fastcdr::optional member_ann_builtin_char_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_char_field = TypeObjectUtils::build_complete_member_detail(name_char_field, member_ann_builtin_char_field, ann_custom_StructType); + CompleteStructMember member_char_field = TypeObjectUtils::build_complete_struct_member(common_char_field, detail_char_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_char_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_byte", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint8_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint8_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint8_field; + MemberId member_id_uint8_field = 0x00000001; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint8_field = TypeObjectUtils::build_common_struct_member(member_id_uint8_field, member_flags_uint8_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint8_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint8_field = "uint8_field"; + eprosima::fastcdr::optional member_ann_builtin_uint8_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint8_field = TypeObjectUtils::build_complete_member_detail(name_uint8_field, member_ann_builtin_uint8_field, ann_custom_StructType); + CompleteStructMember member_uint8_field = TypeObjectUtils::build_complete_struct_member(common_uint8_field, detail_uint8_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint8_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int16_field; + MemberId member_id_int16_field = 0x00000002; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int16_field = TypeObjectUtils::build_common_struct_member(member_id_int16_field, member_flags_int16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int16_field = "int16_field"; + eprosima::fastcdr::optional member_ann_builtin_int16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int16_field = TypeObjectUtils::build_complete_member_detail(name_int16_field, member_ann_builtin_int16_field, ann_custom_StructType); + CompleteStructMember member_int16_field = TypeObjectUtils::build_complete_struct_member(common_int16_field, detail_int16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint16_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint16_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint16_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint16_field; + MemberId member_id_uint16_field = 0x00000003; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint16_field = TypeObjectUtils::build_common_struct_member(member_id_uint16_field, member_flags_uint16_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint16_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint16_field = "uint16_field"; + eprosima::fastcdr::optional member_ann_builtin_uint16_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint16_field = TypeObjectUtils::build_complete_member_detail(name_uint16_field, member_ann_builtin_uint16_field, ann_custom_StructType); + CompleteStructMember member_uint16_field = TypeObjectUtils::build_complete_struct_member(common_uint16_field, detail_uint16_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint16_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int32_field; + MemberId member_id_int32_field = 0x00000004; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int32_field = TypeObjectUtils::build_common_struct_member(member_id_int32_field, member_flags_int32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int32_field = "int32_field"; + eprosima::fastcdr::optional member_ann_builtin_int32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int32_field = TypeObjectUtils::build_complete_member_detail(name_int32_field, member_ann_builtin_int32_field, ann_custom_StructType); + CompleteStructMember member_int32_field = TypeObjectUtils::build_complete_struct_member(common_int32_field, detail_int32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint32_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint32_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint32_field; + MemberId member_id_uint32_field = 0x00000005; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint32_field = TypeObjectUtils::build_common_struct_member(member_id_uint32_field, member_flags_uint32_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint32_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint32_field = "uint32_field"; + eprosima::fastcdr::optional member_ann_builtin_uint32_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint32_field = TypeObjectUtils::build_complete_member_detail(name_uint32_field, member_ann_builtin_uint32_field, ann_custom_StructType); + CompleteStructMember member_uint32_field = TypeObjectUtils::build_complete_struct_member(common_uint32_field, detail_uint32_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint32_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_int64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "int64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_int64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_int64_field; + MemberId member_id_int64_field = 0x00000006; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_int64_field = TypeObjectUtils::build_common_struct_member(member_id_int64_field, member_flags_int64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure int64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_int64_field = "int64_field"; + eprosima::fastcdr::optional member_ann_builtin_int64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_int64_field = TypeObjectUtils::build_complete_member_detail(name_int64_field, member_ann_builtin_int64_field, ann_custom_StructType); + CompleteStructMember member_int64_field = TypeObjectUtils::build_complete_struct_member(common_int64_field, detail_int64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_int64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint64_t", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "uint64_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_uint64_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_uint64_field; + MemberId member_id_uint64_field = 0x00000007; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_uint64_field = TypeObjectUtils::build_common_struct_member(member_id_uint64_field, member_flags_uint64_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure uint64_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_uint64_field = "uint64_field"; + eprosima::fastcdr::optional member_ann_builtin_uint64_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_uint64_field = TypeObjectUtils::build_complete_member_detail(name_uint64_field, member_ann_builtin_uint64_field, ann_custom_StructType); + CompleteStructMember member_uint64_field = TypeObjectUtils::build_complete_struct_member(common_uint64_field, detail_uint64_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_uint64_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_float", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "float_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_float_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_float_field; + MemberId member_id_float_field = 0x00000008; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_float_field = TypeObjectUtils::build_common_struct_member(member_id_float_field, member_flags_float_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure float_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_float_field = "float_field"; + eprosima::fastcdr::optional member_ann_builtin_float_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_float_field = TypeObjectUtils::build_complete_member_detail(name_float_field, member_ann_builtin_float_field, ann_custom_StructType); + CompleteStructMember member_float_field = TypeObjectUtils::build_complete_struct_member(common_float_field, detail_float_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_float_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_double", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "double_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_double_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_double_field; + MemberId member_id_double_field = 0x00000009; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_double_field = TypeObjectUtils::build_common_struct_member(member_id_double_field, member_flags_double_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure double_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_double_field = "double_field"; + eprosima::fastcdr::optional member_ann_builtin_double_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_double_field = TypeObjectUtils::build_complete_member_detail(name_double_field, member_ann_builtin_double_field, ann_custom_StructType); + CompleteStructMember member_double_field = TypeObjectUtils::build_complete_struct_member(common_double_field, detail_double_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_double_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_bool", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "bool_field Structure member TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + StructMemberFlag member_flags_bool_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_bool_field; + MemberId member_id_bool_field = 0x0000000a; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_bool_field = TypeObjectUtils::build_common_struct_member(member_id_bool_field, member_flags_bool_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure bool_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_bool_field = "bool_field"; + eprosima::fastcdr::optional member_ann_builtin_bool_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_bool_field = TypeObjectUtils::build_complete_member_detail(name_bool_field, member_ann_builtin_bool_field, ann_custom_StructType); + CompleteStructMember member_bool_field = TypeObjectUtils::build_complete_struct_member(common_bool_field, detail_bool_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_bool_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + 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_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_string_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_string_field; + MemberId member_id_string_field = 0x0000000b; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_string_field = TypeObjectUtils::build_common_struct_member(member_id_string_field, member_flags_string_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure string_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_string_field = "string_field"; + eprosima::fastcdr::optional member_ann_builtin_string_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_string_field = TypeObjectUtils::build_complete_member_detail(name_string_field, member_ann_builtin_string_field, ann_custom_StructType); + CompleteStructMember member_string_field = TypeObjectUtils::build_complete_struct_member(common_string_field, detail_string_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_string_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Color = 0; + BitBound bit_bound_Color = 32; + CommonEnumeratedHeader common_Color = TypeObjectUtils::build_common_enumerated_header(bit_bound_Color); + QualifiedTypeName type_name_Color = "eprosima::test::Color"; + eprosima::fastcdr::optional type_ann_builtin_Color; + eprosima::fastcdr::optional ann_custom_Color; + CompleteTypeDetail detail_Color = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Color, ann_custom_Color, type_name_Color.to_string()); + CompleteEnumeratedHeader header_Color = TypeObjectUtils::build_complete_enumerated_header(common_Color, detail_Color); + CompleteEnumeratedLiteralSeq literal_seq_Color; + { + EnumeratedLiteralFlag flags_RED = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_RED = TypeObjectUtils::build_common_enumerated_literal(0, flags_RED); + eprosima::fastcdr::optional member_ann_builtin_RED; + ann_custom_Color.reset(); + MemberName name_RED = "RED"; + CompleteMemberDetail detail_RED = TypeObjectUtils::build_complete_member_detail(name_RED, member_ann_builtin_RED, ann_custom_Color); + CompleteEnumeratedLiteral literal_RED = TypeObjectUtils::build_complete_enumerated_literal(common_RED, detail_RED); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_RED); + } + { + EnumeratedLiteralFlag flags_GREEN = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_GREEN = TypeObjectUtils::build_common_enumerated_literal(1, flags_GREEN); + eprosima::fastcdr::optional member_ann_builtin_GREEN; + ann_custom_Color.reset(); + MemberName name_GREEN = "GREEN"; + CompleteMemberDetail detail_GREEN = TypeObjectUtils::build_complete_member_detail(name_GREEN, member_ann_builtin_GREEN, ann_custom_Color); + CompleteEnumeratedLiteral literal_GREEN = TypeObjectUtils::build_complete_enumerated_literal(common_GREEN, detail_GREEN); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_GREEN); + } + { + EnumeratedLiteralFlag flags_BLUE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_BLUE = TypeObjectUtils::build_common_enumerated_literal(2, flags_BLUE); + eprosima::fastcdr::optional member_ann_builtin_BLUE; + ann_custom_Color.reset(); + MemberName name_BLUE = "BLUE"; + CompleteMemberDetail detail_BLUE = TypeObjectUtils::build_complete_member_detail(name_BLUE, member_ann_builtin_BLUE, ann_custom_Color); + CompleteEnumeratedLiteral literal_BLUE = TypeObjectUtils::build_complete_enumerated_literal(common_BLUE, detail_BLUE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_BLUE); + } + { + EnumeratedLiteralFlag flags_YELLOW = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_YELLOW = TypeObjectUtils::build_common_enumerated_literal(3, flags_YELLOW); + eprosima::fastcdr::optional member_ann_builtin_YELLOW; + ann_custom_Color.reset(); + MemberName name_YELLOW = "YELLOW"; + CompleteMemberDetail detail_YELLOW = TypeObjectUtils::build_complete_member_detail(name_YELLOW, member_ann_builtin_YELLOW, ann_custom_Color); + CompleteEnumeratedLiteral literal_YELLOW = TypeObjectUtils::build_complete_enumerated_literal(common_YELLOW, detail_YELLOW); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_YELLOW); + } + { + EnumeratedLiteralFlag flags_MAGENTA = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_MAGENTA = TypeObjectUtils::build_common_enumerated_literal(4, flags_MAGENTA); + eprosima::fastcdr::optional member_ann_builtin_MAGENTA; + ann_custom_Color.reset(); + MemberName name_MAGENTA = "MAGENTA"; + CompleteMemberDetail detail_MAGENTA = TypeObjectUtils::build_complete_member_detail(name_MAGENTA, member_ann_builtin_MAGENTA, ann_custom_Color); + CompleteEnumeratedLiteral literal_MAGENTA = TypeObjectUtils::build_complete_enumerated_literal(common_MAGENTA, detail_MAGENTA); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Color, literal_MAGENTA); + } + CompleteEnumeratedType enumerated_type_Color = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Color, header_Color, + literal_seq_Color); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Color, type_name_Color.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Color", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Color: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum_field; + MemberId member_id_enum_field = 0x0000000c; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum_field = TypeObjectUtils::build_common_struct_member(member_id_enum_field, member_flags_enum_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum_field = "enum_field"; + eprosima::fastcdr::optional member_ann_builtin_enum_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum_field = TypeObjectUtils::build_complete_member_detail(name_enum_field, member_ann_builtin_enum_field, ann_custom_StructType); + CompleteStructMember member_enum_field = TypeObjectUtils::build_complete_struct_member(common_enum_field, detail_enum_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum_field); + } + { + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EnumTypeFlag enum_flags_Material = 0; + BitBound bit_bound_Material = 32; + CommonEnumeratedHeader common_Material = TypeObjectUtils::build_common_enumerated_header(bit_bound_Material); + QualifiedTypeName type_name_Material = "eprosima::test::Material"; + eprosima::fastcdr::optional type_ann_builtin_Material; + eprosima::fastcdr::optional ann_custom_Material; + CompleteTypeDetail detail_Material = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_Material, ann_custom_Material, type_name_Material.to_string()); + CompleteEnumeratedHeader header_Material = TypeObjectUtils::build_complete_enumerated_header(common_Material, detail_Material); + CompleteEnumeratedLiteralSeq literal_seq_Material; + { + EnumeratedLiteralFlag flags_WOOD = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_WOOD = TypeObjectUtils::build_common_enumerated_literal(0, flags_WOOD); + eprosima::fastcdr::optional member_ann_builtin_WOOD; + ann_custom_Material.reset(); + MemberName name_WOOD = "WOOD"; + CompleteMemberDetail detail_WOOD = TypeObjectUtils::build_complete_member_detail(name_WOOD, member_ann_builtin_WOOD, ann_custom_Material); + CompleteEnumeratedLiteral literal_WOOD = TypeObjectUtils::build_complete_enumerated_literal(common_WOOD, detail_WOOD); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_WOOD); + } + { + EnumeratedLiteralFlag flags_PLASTIC = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_PLASTIC = TypeObjectUtils::build_common_enumerated_literal(1, flags_PLASTIC); + eprosima::fastcdr::optional member_ann_builtin_PLASTIC; + ann_custom_Material.reset(); + MemberName name_PLASTIC = "PLASTIC"; + CompleteMemberDetail detail_PLASTIC = TypeObjectUtils::build_complete_member_detail(name_PLASTIC, member_ann_builtin_PLASTIC, ann_custom_Material); + CompleteEnumeratedLiteral literal_PLASTIC = TypeObjectUtils::build_complete_enumerated_literal(common_PLASTIC, detail_PLASTIC); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_PLASTIC); + } + { + EnumeratedLiteralFlag flags_METAL = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_METAL = TypeObjectUtils::build_common_enumerated_literal(2, flags_METAL); + eprosima::fastcdr::optional member_ann_builtin_METAL; + ann_custom_Material.reset(); + MemberName name_METAL = "METAL"; + CompleteMemberDetail detail_METAL = TypeObjectUtils::build_complete_member_detail(name_METAL, member_ann_builtin_METAL, ann_custom_Material); + CompleteEnumeratedLiteral literal_METAL = TypeObjectUtils::build_complete_enumerated_literal(common_METAL, detail_METAL); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_METAL); + } + { + EnumeratedLiteralFlag flags_CONCRETE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_CONCRETE = TypeObjectUtils::build_common_enumerated_literal(3, flags_CONCRETE); + eprosima::fastcdr::optional member_ann_builtin_CONCRETE; + ann_custom_Material.reset(); + MemberName name_CONCRETE = "CONCRETE"; + CompleteMemberDetail detail_CONCRETE = TypeObjectUtils::build_complete_member_detail(name_CONCRETE, member_ann_builtin_CONCRETE, ann_custom_Material); + CompleteEnumeratedLiteral literal_CONCRETE = TypeObjectUtils::build_complete_enumerated_literal(common_CONCRETE, detail_CONCRETE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_CONCRETE); + } + { + EnumeratedLiteralFlag flags_STONE = TypeObjectUtils::build_enumerated_literal_flag(false); + CommonEnumeratedLiteral common_STONE = TypeObjectUtils::build_common_enumerated_literal(4, flags_STONE); + eprosima::fastcdr::optional member_ann_builtin_STONE; + ann_custom_Material.reset(); + MemberName name_STONE = "STONE"; + CompleteMemberDetail detail_STONE = TypeObjectUtils::build_complete_member_detail(name_STONE, member_ann_builtin_STONE, ann_custom_Material); + CompleteEnumeratedLiteral literal_STONE = TypeObjectUtils::build_complete_enumerated_literal(common_STONE, detail_STONE); + TypeObjectUtils::add_complete_enumerated_literal(literal_seq_Material, literal_STONE); + } + CompleteEnumeratedType enumerated_type_Material = TypeObjectUtils::build_complete_enumerated_type(enum_flags_Material, header_Material, + literal_seq_Material); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_enumerated_type_object(enumerated_type_Material, type_name_Material.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::Material", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::Material: Given Enum TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_enum2_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_enum2_field; + MemberId member_id_enum2_field = 0x0000000d; + if (EK_COMPLETE == type_ids_StructType.type_identifier1()._d() || TK_NONE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier1()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_StructType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_StructType.type_identifier2()._d() && + EK_COMPLETE == type_ids_StructType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_StructType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_StructType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_enum2_field = TypeObjectUtils::build_common_struct_member(member_id_enum2_field, member_flags_enum2_field, type_ids_StructType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure enum2_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_enum2_field = "enum2_field"; + eprosima::fastcdr::optional member_ann_builtin_enum2_field; + ann_custom_StructType.reset(); + CompleteMemberDetail detail_enum2_field = TypeObjectUtils::build_complete_member_detail(name_enum2_field, member_ann_builtin_enum2_field, ann_custom_StructType); + CompleteStructMember member_enum2_field = TypeObjectUtils::build_complete_struct_member(common_enum2_field, detail_enum2_field); + TypeObjectUtils::add_complete_struct_member(member_seq_StructType, member_enum2_field); + } + CompleteStructType struct_type_StructType = TypeObjectUtils::build_complete_struct_type(struct_flags_StructType, header_StructType, member_seq_StructType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_StructType, type_name_StructType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType already registered in TypeObjectRegistry for a different type."); + } + return_code_StructType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::StructType", type_ids_StructType); + if (return_code_StructType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::StructType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + } + TypeIdentifier* element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded {nullptr}; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded = new TypeIdentifier(type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Sequence element TypeIdentifier inconsistent."); + return; + } + EquivalenceKind equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded = EK_COMPLETE; + if (TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d()) + { + equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded = EK_BOTH; + } + CollectionElementFlag element_flags_anonymous_sequence_eprosima_test_StructType_unbounded = 0; + PlainCollectionHeader header_anonymous_sequence_eprosima_test_StructType_unbounded = TypeObjectUtils::build_plain_collection_header(equiv_kind_anonymous_sequence_eprosima_test_StructType_unbounded, element_flags_anonymous_sequence_eprosima_test_StructType_unbounded); + std::string type_id_kind_anonymous_sequence_eprosima_test_StructType_unbounded("TI_PLAIN_SEQUENCE_SMALL"); + if (type_id_kind_anonymous_sequence_eprosima_test_StructType_unbounded == "TI_PLAIN_SEQUENCE_SMALL") + { + SBound bound = 0; + PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils::build_plain_sequence_s_elem_defn(header_anonymous_sequence_eprosima_test_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_s_sequence_type_identifier(seq_sdefn, "anonymous_sequence_eprosima_test_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_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_test_StructType_unbounded, bound, + eprosima::fastcdr::external(element_identifier_anonymous_sequence_eprosima_test_StructType_unbounded)); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_l_sequence_type_identifier(seq_ldefn, "anonymous_sequence_eprosima_test_StructType_unbounded")) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_unbounded already registered in TypeObjectRegistry for a different type."); + } + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_sequence_eprosima_test_StructType_unbounded", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_sequence_eprosima_test_StructType_unbounded: Given Sequence TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } + StructMemberFlag member_flags_unbounded_sequence_struct_field = TypeObjectUtils::build_struct_member_flag(eprosima::fastdds::dds::xtypes::TryConstructKind::NOT_APPLIED, + false, false, false, false); + CommonStructMember common_unbounded_sequence_struct_field; + MemberId member_id_unbounded_sequence_struct_field = 0x00000048; + if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1()._d() || TK_NONE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier1()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_KeyedCompleteTestType.type_identifier2()._d() && + (EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_KeyedCompleteTestType.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_unbounded_sequence_struct_field = TypeObjectUtils::build_common_struct_member(member_id_unbounded_sequence_struct_field, member_flags_unbounded_sequence_struct_field, type_ids_KeyedCompleteTestType.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure unbounded_sequence_struct_field member TypeIdentifier inconsistent."); + return; + } + MemberName name_unbounded_sequence_struct_field = "unbounded_sequence_struct_field"; + eprosima::fastcdr::optional member_ann_builtin_unbounded_sequence_struct_field; + ann_custom_KeyedCompleteTestType.reset(); + CompleteMemberDetail detail_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_member_detail(name_unbounded_sequence_struct_field, member_ann_builtin_unbounded_sequence_struct_field, ann_custom_KeyedCompleteTestType); + CompleteStructMember member_unbounded_sequence_struct_field = TypeObjectUtils::build_complete_struct_member(common_unbounded_sequence_struct_field, detail_unbounded_sequence_struct_field); + TypeObjectUtils::add_complete_struct_member(member_seq_KeyedCompleteTestType, member_unbounded_sequence_struct_field); + } + CompleteStructType struct_type_KeyedCompleteTestType = TypeObjectUtils::build_complete_struct_type(struct_flags_KeyedCompleteTestType, header_KeyedCompleteTestType, member_seq_KeyedCompleteTestType); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_KeyedCompleteTestType, type_name_KeyedCompleteTestType.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::KeyedCompleteTestType already registered in TypeObjectRegistry for a different type."); + } + return_code_KeyedCompleteTestType = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "eprosima::test::KeyedCompleteTestType", type_ids_KeyedCompleteTestType); + if (return_code_KeyedCompleteTestType != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "eprosima::test::KeyedCompleteTestType: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + +} // namespace test + +} // namespace eprosima + diff --git a/fastdds_python/test/types/test_modulesTypeObjectSupport.hpp b/fastdds_python/test/types/test_modulesTypeObjectSupport.hpp new file mode 100644 index 00000000..88fea795 --- /dev/null +++ b/fastdds_python/test/types/test_modulesTypeObjectSupport.hpp @@ -0,0 +1,78 @@ +// 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 test_modulesTypeObjectSupport.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_TEST_TEST_MODULES_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_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_test_modules_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +namespace eprosima { +namespace test { +/** + * @brief Register eprosima_test_StructType 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. + */ +eProsima_user_DllExport void register_eprosima_test_StructType_type_identifier(); + + + +/** + * @brief Register eprosima_test_CompleteTestType 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. + */ +eProsima_user_DllExport void register_eprosima_test_CompleteTestType_type_identifier(); + +/** + * @brief Register eprosima_test_KeyedCompleteTestType 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. + */ +eProsima_user_DllExport void register_eprosima_test_KeyedCompleteTestType_type_identifier(); + +} // namespace test + +} // namespace eprosima + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/fastdds_python/test/types/test_modulesv1.cxx b/fastdds_python/test/types/test_modulesv1.cxx deleted file mode 100644 index 9122a6fc..00000000 --- a/fastdds_python/test/types/test_modulesv1.cxx +++ /dev/null @@ -1,10383 +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 test_modules.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 "test_modules.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 eprosima_test_KeyedCompleteTestType_max_cdr_typesize 42528ULL; - -#define eprosima_test_CompleteTestType_max_cdr_typesize 42528ULL; -#define eprosima_test_StructType_max_cdr_typesize 328ULL; - - -namespace eprosima { - -namespace test { - - - -StructType::StructType() -{ - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // eprosima::test::Color m_enum_field - m_enum_field = eprosima::test::RED; - // eprosima::test::Material m_enum2_field - m_enum2_field = eprosima::test::WOOD; - -} - -StructType::~StructType() -{ -} - -StructType::StructType( - const StructType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - -} - -StructType::StructType( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - -} - -StructType& StructType::operator =( - const StructType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - return *this; -} - -StructType& StructType::operator =( - StructType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - return *this; -} - -bool StructType::operator ==( - const StructType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field); -} - -bool StructType::operator !=( - const StructType& x) const -{ - return !(*this == x); -} - -size_t StructType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return eprosima_test_StructType_max_cdr_typesize; -} - -size_t StructType::getCdrSerializedSize( - const StructType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - return current_alignment - initial_alignment; -} - - -void StructType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - -} - -void StructType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (eprosima::test::Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (eprosima::test::Material)enum_value; - } - - -} - - -bool StructType::isKeyDefined() -{ - return false; -} - -void StructType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void StructType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char StructType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& StructType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void StructType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t StructType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& StructType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void StructType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t StructType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& StructType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void StructType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t StructType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& StructType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void StructType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t StructType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& StructType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void StructType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t StructType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& StructType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void StructType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t StructType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& StructType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void StructType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t StructType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& StructType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void StructType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float StructType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& StructType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void StructType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double StructType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& StructType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void StructType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool StructType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& StructType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void StructType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void StructType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& StructType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& StructType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void StructType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color StructType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& StructType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void StructType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material StructType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& StructType::enum2_field() -{ - return m_enum2_field; -} - - - - - - - - - -CompleteTestType::CompleteTestType() -{ - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // eprosima::test::Color m_enum_field - m_enum_field = eprosima::test::RED; - // eprosima::test::Material m_enum2_field - m_enum2_field = eprosima::test::WOOD; - // eprosima::test::StructType m_struct_field - - // char m_char_opt_field - m_char_opt_field = 0; - // octet m_uint8_opt_field - m_uint8_opt_field = 0; - // short m_int16_opt_field - m_int16_opt_field = 0; - // unsigned short m_uint16_opt_field - m_uint16_opt_field = 0; - // long m_int32_opt_field - m_int32_opt_field = 0; - // unsigned long m_uint32_opt_field - m_uint32_opt_field = 0; - // long long m_int64_opt_field - m_int64_opt_field = 0; - // unsigned long long m_uint64_opt_field - m_uint64_opt_field = 0; - // float m_float_opt_field - m_float_opt_field = 0.0; - // double m_double_opt_field - m_double_opt_field = 0.0; - // boolean m_bool_opt_field - m_bool_opt_field = false; - // /type_d() m_string_opt_field - - // eprosima::test::Color m_enum_opt_field - m_enum_opt_field = eprosima::test::RED; - // eprosima::test::Material m_enum2_opt_field - m_enum2_opt_field = eprosima::test::WOOD; - // eprosima::test::StructType m_struct_opt_field - - // char m_array_char_field - memset(&m_array_char_field, 0, ((max_array_size)) * 1); - // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); - // short m_array_int16_field - memset(&m_array_int16_field, 0, ((max_array_size)) * 2); - // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); - // long m_array_int32_field - memset(&m_array_int32_field, 0, ((max_array_size)) * 4); - // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); - // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((max_array_size)) * 8); - // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); - // float m_array_float_field - memset(&m_array_float_field, 0, ((max_array_size)) * 4); - // double m_array_double_field - memset(&m_array_double_field, 0, ((max_array_size)) * 8); - // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((max_array_size)) * 1); - // eprosima::test::Color m_array_enum_field - memset(&m_array_enum_field, 0, ((max_array_size)) * 4); - // eprosima::test::Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); - // eprosima::test::StructType m_array_struct_field - - // sequence m_bounded_sequence_char_field - - // sequence m_bounded_sequence_uint8_field - - // sequence m_bounded_sequence_int16_field - - // sequence m_bounded_sequence_uint16_field - - // sequence m_bounded_sequence_int32_field - - // sequence m_bounded_sequence_uint32_field - - // sequence m_bounded_sequence_int64_field - - // sequence m_bounded_sequence_uint64_field - - // sequence m_bounded_sequence_float_field - - // sequence m_bounded_sequence_double_field - - // sequence m_bounded_sequence_bool_field - - // sequence m_bounded_sequence_enum_field - - // sequence m_bounded_sequence_enum2_field - - // sequence m_bounded_sequence_struct_field - - // sequence m_unbounded_sequence_char_field - - // sequence m_unbounded_sequence_uint8_field - - // sequence m_unbounded_sequence_int16_field - - // sequence m_unbounded_sequence_uint16_field - - // sequence m_unbounded_sequence_int32_field - - // sequence m_unbounded_sequence_uint32_field - - // sequence m_unbounded_sequence_int64_field - - // sequence m_unbounded_sequence_uint64_field - - // sequence m_unbounded_sequence_float_field - - // sequence m_unbounded_sequence_double_field - - // sequence m_unbounded_sequence_bool_field - - // sequence m_unbounded_sequence_enum_field - - // sequence m_unbounded_sequence_enum2_field - - // sequence m_unbounded_sequence_struct_field - - -} - -CompleteTestType::~CompleteTestType() -{ -} - -CompleteTestType::CompleteTestType( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - -} - -CompleteTestType::CompleteTestType( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - -} - -CompleteTestType& CompleteTestType::operator =( - const CompleteTestType& x) -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - - return *this; -} - -CompleteTestType& CompleteTestType::operator =( - CompleteTestType&& x) noexcept -{ - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - - return *this; -} - -bool CompleteTestType::operator ==( - const CompleteTestType& x) const -{ - return (m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool CompleteTestType::operator !=( - const CompleteTestType& x) const -{ - return !(*this == x); -} - -size_t CompleteTestType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return eprosima_test_CompleteTestType_max_cdr_typesize; -} - -size_t CompleteTestType::getCdrSerializedSize( - const CompleteTestType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_field(), current_alignment); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_opt_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - - for(size_t a = 0; a < data.array_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.array_struct_field().at(a), current_alignment); - - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_char_field().size() > 0) - { - current_alignment += (data.bounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_float_field().size() > 0) - { - current_alignment += (data.bounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_double_field().size() > 0) - { - current_alignment += (data.bounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.bounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.bounded_sequence_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.bounded_sequence_struct_field().at(a), current_alignment); - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_char_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_float_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_double_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.unbounded_sequence_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.unbounded_sequence_struct_field().at(a), current_alignment); - } - - - - return current_alignment - initial_alignment; -} - - -void CompleteTestType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - - scdr << m_struct_field; - - scdr << m_char_opt_field; - - scdr << m_uint8_opt_field; - - scdr << m_int16_opt_field; - - scdr << m_uint16_opt_field; - - scdr << m_int32_opt_field; - - scdr << m_uint32_opt_field; - - scdr << m_int64_opt_field; - - scdr << m_uint64_opt_field; - - scdr << m_float_opt_field; - - scdr << m_double_opt_field; - - scdr << m_bool_opt_field; - - scdr << m_string_opt_field.c_str(); - - scdr << (uint32_t)m_enum_opt_field; - - scdr << (uint32_t)m_enum2_opt_field; - - scdr << m_struct_opt_field; - - scdr << m_array_char_field; - - - scdr << m_array_uint8_field; - - - scdr << m_array_int16_field; - - - scdr << m_array_uint16_field; - - - scdr << m_array_int32_field; - - - scdr << m_array_uint32_field; - - - scdr << m_array_int64_field; - - - scdr << m_array_uint64_field; - - - scdr << m_array_float_field; - - - scdr << m_array_double_field; - - - scdr << m_array_bool_field; - - - scdr.serializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - scdr.serializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - scdr << m_array_struct_field; - - - scdr << m_bounded_sequence_char_field; - - - scdr << m_bounded_sequence_uint8_field; - - - scdr << m_bounded_sequence_int16_field; - - - scdr << m_bounded_sequence_uint16_field; - - - scdr << m_bounded_sequence_int32_field; - - - scdr << m_bounded_sequence_uint32_field; - - - scdr << m_bounded_sequence_int64_field; - - - scdr << m_bounded_sequence_uint64_field; - - - scdr << m_bounded_sequence_float_field; - - - scdr << m_bounded_sequence_double_field; - - - scdr << m_bounded_sequence_bool_field; - - - scdr << static_cast(m_bounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), m_bounded_sequence_enum_field.size()); - - - scdr << static_cast(m_bounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), m_bounded_sequence_enum2_field.size()); - - - scdr << m_bounded_sequence_struct_field; - - - scdr << m_unbounded_sequence_char_field; - - - scdr << m_unbounded_sequence_uint8_field; - - - scdr << m_unbounded_sequence_int16_field; - - - scdr << m_unbounded_sequence_uint16_field; - - - scdr << m_unbounded_sequence_int32_field; - - - scdr << m_unbounded_sequence_uint32_field; - - - scdr << m_unbounded_sequence_int64_field; - - - scdr << m_unbounded_sequence_uint64_field; - - - scdr << m_unbounded_sequence_float_field; - - - scdr << m_unbounded_sequence_double_field; - - - scdr << m_unbounded_sequence_bool_field; - - - scdr << static_cast(m_unbounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), m_unbounded_sequence_enum_field.size()); - - - scdr << static_cast(m_unbounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), m_unbounded_sequence_enum2_field.size()); - - - scdr << m_unbounded_sequence_struct_field; - - -} - -void CompleteTestType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (eprosima::test::Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (eprosima::test::Material)enum_value; - } - - - - dcdr >> m_struct_field; - - - - dcdr >> m_char_opt_field; - - - - dcdr >> m_uint8_opt_field; - - - - dcdr >> m_int16_opt_field; - - - - dcdr >> m_uint16_opt_field; - - - - dcdr >> m_int32_opt_field; - - - - dcdr >> m_uint32_opt_field; - - - - dcdr >> m_int64_opt_field; - - - - dcdr >> m_uint64_opt_field; - - - - dcdr >> m_float_opt_field; - - - - dcdr >> m_double_opt_field; - - - - dcdr >> m_bool_opt_field; - - - - dcdr >> m_string_opt_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_opt_field = (eprosima::test::Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_opt_field = (eprosima::test::Material)enum_value; - } - - - - dcdr >> m_struct_opt_field; - - - - dcdr >> m_array_char_field; - - - - dcdr >> m_array_uint8_field; - - - - dcdr >> m_array_int16_field; - - - - dcdr >> m_array_uint16_field; - - - - dcdr >> m_array_int32_field; - - - - dcdr >> m_array_uint32_field; - - - - dcdr >> m_array_int64_field; - - - - dcdr >> m_array_uint64_field; - - - - dcdr >> m_array_float_field; - - - - dcdr >> m_array_double_field; - - - - dcdr >> m_array_bool_field; - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - - dcdr >> m_array_struct_field; - - - - dcdr >> m_bounded_sequence_char_field; - - - - dcdr >> m_bounded_sequence_uint8_field; - - - - dcdr >> m_bounded_sequence_int16_field; - - - - dcdr >> m_bounded_sequence_uint16_field; - - - - dcdr >> m_bounded_sequence_int32_field; - - - - dcdr >> m_bounded_sequence_uint32_field; - - - - dcdr >> m_bounded_sequence_int64_field; - - - - dcdr >> m_bounded_sequence_uint64_field; - - - - dcdr >> m_bounded_sequence_float_field; - - - - dcdr >> m_bounded_sequence_double_field; - - - - dcdr >> m_bounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_bounded_sequence_struct_field; - - - - dcdr >> m_unbounded_sequence_char_field; - - - - dcdr >> m_unbounded_sequence_uint8_field; - - - - dcdr >> m_unbounded_sequence_int16_field; - - - - dcdr >> m_unbounded_sequence_uint16_field; - - - - dcdr >> m_unbounded_sequence_int32_field; - - - - dcdr >> m_unbounded_sequence_uint32_field; - - - - dcdr >> m_unbounded_sequence_int64_field; - - - - dcdr >> m_unbounded_sequence_uint64_field; - - - - dcdr >> m_unbounded_sequence_float_field; - - - - dcdr >> m_unbounded_sequence_double_field; - - - - dcdr >> m_unbounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_unbounded_sequence_struct_field; - - -} - - -bool CompleteTestType::isKeyDefined() -{ - return false; -} - -void CompleteTestType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; -} - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void CompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char CompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& CompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void CompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t CompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& CompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void CompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t CompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& CompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void CompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t CompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& CompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void CompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t CompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& CompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void CompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t CompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& CompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void CompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t CompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& CompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void CompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t CompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& CompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void CompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float CompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& CompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void CompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double CompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& CompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void CompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool CompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& CompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void CompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void CompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& CompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& CompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void CompleteTestType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color CompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& CompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void CompleteTestType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material CompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& CompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void CompleteTestType::struct_field( - const eprosima::test::StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void CompleteTestType::struct_field( - eprosima::test::StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const eprosima::test::StructType& CompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -eprosima::test::StructType& CompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ -void CompleteTestType::char_opt_field( - char _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ -char CompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -char& CompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ -void CompleteTestType::uint8_opt_field( - uint8_t _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ -uint8_t CompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -uint8_t& CompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ -void CompleteTestType::int16_opt_field( - int16_t _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ -int16_t CompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -int16_t& CompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ -void CompleteTestType::uint16_opt_field( - uint16_t _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ -uint16_t CompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -uint16_t& CompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ -void CompleteTestType::int32_opt_field( - int32_t _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ -int32_t CompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -int32_t& CompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ -void CompleteTestType::uint32_opt_field( - uint32_t _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ -uint32_t CompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -uint32_t& CompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ -void CompleteTestType::int64_opt_field( - int64_t _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ -int64_t CompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -int64_t& CompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ -void CompleteTestType::uint64_opt_field( - uint64_t _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ -uint64_t CompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -uint64_t& CompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ -void CompleteTestType::float_opt_field( - float _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ -float CompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -float& CompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ -void CompleteTestType::double_opt_field( - double _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ -double CompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -double& CompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ -void CompleteTestType::bool_opt_field( - bool _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ -bool CompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -bool& CompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void CompleteTestType::string_opt_field( - const std::string& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void CompleteTestType::string_opt_field( - std::string&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const std::string& CompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -std::string& CompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ -void CompleteTestType::enum_opt_field( - eprosima::test::Color _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ -eprosima::test::Color CompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::test::Color& CompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ -void CompleteTestType::enum2_opt_field( - eprosima::test::Material _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ -eprosima::test::Material CompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::test::Material& CompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - const eprosima::test::StructType& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void CompleteTestType::struct_opt_field( - eprosima::test::StructType&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::test::StructType& CompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::test::StructType& CompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void CompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void CompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& CompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& CompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void CompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& CompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& CompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void CompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void CompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& CompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& CompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void CompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& CompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& CompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void CompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void CompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& CompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& CompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void CompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& CompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& CompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void CompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void CompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& CompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& CompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void CompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& CompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& CompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void CompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void CompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& CompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& CompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void CompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void CompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& CompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& CompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void CompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void CompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& CompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& CompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void CompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void CompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& CompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& CompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void CompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& CompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& CompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void CompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void CompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& CompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& CompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void CompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& CompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& CompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void CompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& CompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void CompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& CompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& CompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void CompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& CompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void CompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& CompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& CompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void CompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& CompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void CompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& CompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& CompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void CompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& CompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void CompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& CompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& CompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void CompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& CompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& CompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void CompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& CompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& CompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void CompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& CompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void CompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& CompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void CompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& CompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& CompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void CompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& CompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& CompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void CompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void CompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& CompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void CompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void CompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& CompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void CompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void CompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& CompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void CompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& CompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& CompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void CompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& CompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& CompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void CompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& CompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& CompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void CompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& CompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& CompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void CompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void CompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& CompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& CompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void CompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& CompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& CompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - - - - -KeyedCompleteTestType::KeyedCompleteTestType() -{ - // long m_id - m_id = 0; - // char m_char_field - m_char_field = 0; - // octet m_uint8_field - m_uint8_field = 0; - // short m_int16_field - m_int16_field = 0; - // unsigned short m_uint16_field - m_uint16_field = 0; - // long m_int32_field - m_int32_field = 0; - // unsigned long m_uint32_field - m_uint32_field = 0; - // long long m_int64_field - m_int64_field = 0; - // unsigned long long m_uint64_field - m_uint64_field = 0; - // float m_float_field - m_float_field = 0.0; - // double m_double_field - m_double_field = 0.0; - // boolean m_bool_field - m_bool_field = false; - // /type_d() m_string_field - - // eprosima::test::Color m_enum_field - m_enum_field = eprosima::test::RED; - // eprosima::test::Material m_enum2_field - m_enum2_field = eprosima::test::WOOD; - // eprosima::test::StructType m_struct_field - - // char m_char_opt_field - m_char_opt_field = 0; - // octet m_uint8_opt_field - m_uint8_opt_field = 0; - // short m_int16_opt_field - m_int16_opt_field = 0; - // unsigned short m_uint16_opt_field - m_uint16_opt_field = 0; - // long m_int32_opt_field - m_int32_opt_field = 0; - // unsigned long m_uint32_opt_field - m_uint32_opt_field = 0; - // long long m_int64_opt_field - m_int64_opt_field = 0; - // unsigned long long m_uint64_opt_field - m_uint64_opt_field = 0; - // float m_float_opt_field - m_float_opt_field = 0.0; - // double m_double_opt_field - m_double_opt_field = 0.0; - // boolean m_bool_opt_field - m_bool_opt_field = false; - // /type_d() m_string_opt_field - - // eprosima::test::Color m_enum_opt_field - m_enum_opt_field = eprosima::test::RED; - // eprosima::test::Material m_enum2_opt_field - m_enum2_opt_field = eprosima::test::WOOD; - // eprosima::test::StructType m_struct_opt_field - - // char m_array_char_field - memset(&m_array_char_field, 0, ((max_array_size)) * 1); - // octet m_array_uint8_field - memset(&m_array_uint8_field, 0, ((max_array_size)) * 1); - // short m_array_int16_field - memset(&m_array_int16_field, 0, ((max_array_size)) * 2); - // unsigned short m_array_uint16_field - memset(&m_array_uint16_field, 0, ((max_array_size)) * 2); - // long m_array_int32_field - memset(&m_array_int32_field, 0, ((max_array_size)) * 4); - // unsigned long m_array_uint32_field - memset(&m_array_uint32_field, 0, ((max_array_size)) * 4); - // long long m_array_int64_field - memset(&m_array_int64_field, 0, ((max_array_size)) * 8); - // unsigned long long m_array_uint64_field - memset(&m_array_uint64_field, 0, ((max_array_size)) * 8); - // float m_array_float_field - memset(&m_array_float_field, 0, ((max_array_size)) * 4); - // double m_array_double_field - memset(&m_array_double_field, 0, ((max_array_size)) * 8); - // boolean m_array_bool_field - memset(&m_array_bool_field, 0, ((max_array_size)) * 1); - // eprosima::test::Color m_array_enum_field - memset(&m_array_enum_field, 0, ((max_array_size)) * 4); - // eprosima::test::Material m_array_enum2_field - memset(&m_array_enum2_field, 0, ((max_array_size)) * 4); - // eprosima::test::StructType m_array_struct_field - - // sequence m_bounded_sequence_char_field - - // sequence m_bounded_sequence_uint8_field - - // sequence m_bounded_sequence_int16_field - - // sequence m_bounded_sequence_uint16_field - - // sequence m_bounded_sequence_int32_field - - // sequence m_bounded_sequence_uint32_field - - // sequence m_bounded_sequence_int64_field - - // sequence m_bounded_sequence_uint64_field - - // sequence m_bounded_sequence_float_field - - // sequence m_bounded_sequence_double_field - - // sequence m_bounded_sequence_bool_field - - // sequence m_bounded_sequence_enum_field - - // sequence m_bounded_sequence_enum2_field - - // sequence m_bounded_sequence_struct_field - - // sequence m_unbounded_sequence_char_field - - // sequence m_unbounded_sequence_uint8_field - - // sequence m_unbounded_sequence_int16_field - - // sequence m_unbounded_sequence_uint16_field - - // sequence m_unbounded_sequence_int32_field - - // sequence m_unbounded_sequence_uint32_field - - // sequence m_unbounded_sequence_int64_field - - // sequence m_unbounded_sequence_uint64_field - - // sequence m_unbounded_sequence_float_field - - // sequence m_unbounded_sequence_double_field - - // sequence m_unbounded_sequence_bool_field - - // sequence m_unbounded_sequence_enum_field - - // sequence m_unbounded_sequence_enum2_field - - // sequence m_unbounded_sequence_struct_field - - -} - -KeyedCompleteTestType::~KeyedCompleteTestType() -{ -} - -KeyedCompleteTestType::KeyedCompleteTestType( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - -} - -KeyedCompleteTestType::KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - const KeyedCompleteTestType& x) -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = x.m_string_field; - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = x.m_struct_field; - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = x.m_string_opt_field; - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = x.m_struct_opt_field; - - - m_array_char_field = x.m_array_char_field; - - - m_array_uint8_field = x.m_array_uint8_field; - - - m_array_int16_field = x.m_array_int16_field; - - - m_array_uint16_field = x.m_array_uint16_field; - - - m_array_int32_field = x.m_array_int32_field; - - - m_array_uint32_field = x.m_array_uint32_field; - - - m_array_int64_field = x.m_array_int64_field; - - - m_array_uint64_field = x.m_array_uint64_field; - - - m_array_float_field = x.m_array_float_field; - - - m_array_double_field = x.m_array_double_field; - - - m_array_bool_field = x.m_array_bool_field; - - - m_array_enum_field = x.m_array_enum_field; - - - m_array_enum2_field = x.m_array_enum2_field; - - - m_array_struct_field = x.m_array_struct_field; - - - m_bounded_sequence_char_field = x.m_bounded_sequence_char_field; - - - m_bounded_sequence_uint8_field = x.m_bounded_sequence_uint8_field; - - - m_bounded_sequence_int16_field = x.m_bounded_sequence_int16_field; - - - m_bounded_sequence_uint16_field = x.m_bounded_sequence_uint16_field; - - - m_bounded_sequence_int32_field = x.m_bounded_sequence_int32_field; - - - m_bounded_sequence_uint32_field = x.m_bounded_sequence_uint32_field; - - - m_bounded_sequence_int64_field = x.m_bounded_sequence_int64_field; - - - m_bounded_sequence_uint64_field = x.m_bounded_sequence_uint64_field; - - - m_bounded_sequence_float_field = x.m_bounded_sequence_float_field; - - - m_bounded_sequence_double_field = x.m_bounded_sequence_double_field; - - - m_bounded_sequence_bool_field = x.m_bounded_sequence_bool_field; - - - m_bounded_sequence_enum_field = x.m_bounded_sequence_enum_field; - - - m_bounded_sequence_enum2_field = x.m_bounded_sequence_enum2_field; - - - m_bounded_sequence_struct_field = x.m_bounded_sequence_struct_field; - - - m_unbounded_sequence_char_field = x.m_unbounded_sequence_char_field; - - - m_unbounded_sequence_uint8_field = x.m_unbounded_sequence_uint8_field; - - - m_unbounded_sequence_int16_field = x.m_unbounded_sequence_int16_field; - - - m_unbounded_sequence_uint16_field = x.m_unbounded_sequence_uint16_field; - - - m_unbounded_sequence_int32_field = x.m_unbounded_sequence_int32_field; - - - m_unbounded_sequence_uint32_field = x.m_unbounded_sequence_uint32_field; - - - m_unbounded_sequence_int64_field = x.m_unbounded_sequence_int64_field; - - - m_unbounded_sequence_uint64_field = x.m_unbounded_sequence_uint64_field; - - - m_unbounded_sequence_float_field = x.m_unbounded_sequence_float_field; - - - m_unbounded_sequence_double_field = x.m_unbounded_sequence_double_field; - - - m_unbounded_sequence_bool_field = x.m_unbounded_sequence_bool_field; - - - m_unbounded_sequence_enum_field = x.m_unbounded_sequence_enum_field; - - - m_unbounded_sequence_enum2_field = x.m_unbounded_sequence_enum2_field; - - - m_unbounded_sequence_struct_field = x.m_unbounded_sequence_struct_field; - - return *this; -} - -KeyedCompleteTestType& KeyedCompleteTestType::operator =( - KeyedCompleteTestType&& x) noexcept -{ - m_id = x.m_id; - - - m_char_field = x.m_char_field; - - - m_uint8_field = x.m_uint8_field; - - - m_int16_field = x.m_int16_field; - - - m_uint16_field = x.m_uint16_field; - - - m_int32_field = x.m_int32_field; - - - m_uint32_field = x.m_uint32_field; - - - m_int64_field = x.m_int64_field; - - - m_uint64_field = x.m_uint64_field; - - - m_float_field = x.m_float_field; - - - m_double_field = x.m_double_field; - - - m_bool_field = x.m_bool_field; - - - m_string_field = std::move(x.m_string_field); - - - m_enum_field = x.m_enum_field; - - - m_enum2_field = x.m_enum2_field; - - - m_struct_field = std::move(x.m_struct_field); - - - m_char_opt_field = x.m_char_opt_field; - - - m_uint8_opt_field = x.m_uint8_opt_field; - - - m_int16_opt_field = x.m_int16_opt_field; - - - m_uint16_opt_field = x.m_uint16_opt_field; - - - m_int32_opt_field = x.m_int32_opt_field; - - - m_uint32_opt_field = x.m_uint32_opt_field; - - - m_int64_opt_field = x.m_int64_opt_field; - - - m_uint64_opt_field = x.m_uint64_opt_field; - - - m_float_opt_field = x.m_float_opt_field; - - - m_double_opt_field = x.m_double_opt_field; - - - m_bool_opt_field = x.m_bool_opt_field; - - - m_string_opt_field = std::move(x.m_string_opt_field); - - - m_enum_opt_field = x.m_enum_opt_field; - - - m_enum2_opt_field = x.m_enum2_opt_field; - - - m_struct_opt_field = std::move(x.m_struct_opt_field); - - - m_array_char_field = std::move(x.m_array_char_field); - - - m_array_uint8_field = std::move(x.m_array_uint8_field); - - - m_array_int16_field = std::move(x.m_array_int16_field); - - - m_array_uint16_field = std::move(x.m_array_uint16_field); - - - m_array_int32_field = std::move(x.m_array_int32_field); - - - m_array_uint32_field = std::move(x.m_array_uint32_field); - - - m_array_int64_field = std::move(x.m_array_int64_field); - - - m_array_uint64_field = std::move(x.m_array_uint64_field); - - - m_array_float_field = std::move(x.m_array_float_field); - - - m_array_double_field = std::move(x.m_array_double_field); - - - m_array_bool_field = std::move(x.m_array_bool_field); - - - m_array_enum_field = std::move(x.m_array_enum_field); - - - m_array_enum2_field = std::move(x.m_array_enum2_field); - - - m_array_struct_field = std::move(x.m_array_struct_field); - - - m_bounded_sequence_char_field = std::move(x.m_bounded_sequence_char_field); - - - m_bounded_sequence_uint8_field = std::move(x.m_bounded_sequence_uint8_field); - - - m_bounded_sequence_int16_field = std::move(x.m_bounded_sequence_int16_field); - - - m_bounded_sequence_uint16_field = std::move(x.m_bounded_sequence_uint16_field); - - - m_bounded_sequence_int32_field = std::move(x.m_bounded_sequence_int32_field); - - - m_bounded_sequence_uint32_field = std::move(x.m_bounded_sequence_uint32_field); - - - m_bounded_sequence_int64_field = std::move(x.m_bounded_sequence_int64_field); - - - m_bounded_sequence_uint64_field = std::move(x.m_bounded_sequence_uint64_field); - - - m_bounded_sequence_float_field = std::move(x.m_bounded_sequence_float_field); - - - m_bounded_sequence_double_field = std::move(x.m_bounded_sequence_double_field); - - - m_bounded_sequence_bool_field = std::move(x.m_bounded_sequence_bool_field); - - - m_bounded_sequence_enum_field = std::move(x.m_bounded_sequence_enum_field); - - - m_bounded_sequence_enum2_field = std::move(x.m_bounded_sequence_enum2_field); - - - m_bounded_sequence_struct_field = std::move(x.m_bounded_sequence_struct_field); - - - m_unbounded_sequence_char_field = std::move(x.m_unbounded_sequence_char_field); - - - m_unbounded_sequence_uint8_field = std::move(x.m_unbounded_sequence_uint8_field); - - - m_unbounded_sequence_int16_field = std::move(x.m_unbounded_sequence_int16_field); - - - m_unbounded_sequence_uint16_field = std::move(x.m_unbounded_sequence_uint16_field); - - - m_unbounded_sequence_int32_field = std::move(x.m_unbounded_sequence_int32_field); - - - m_unbounded_sequence_uint32_field = std::move(x.m_unbounded_sequence_uint32_field); - - - m_unbounded_sequence_int64_field = std::move(x.m_unbounded_sequence_int64_field); - - - m_unbounded_sequence_uint64_field = std::move(x.m_unbounded_sequence_uint64_field); - - - m_unbounded_sequence_float_field = std::move(x.m_unbounded_sequence_float_field); - - - m_unbounded_sequence_double_field = std::move(x.m_unbounded_sequence_double_field); - - - m_unbounded_sequence_bool_field = std::move(x.m_unbounded_sequence_bool_field); - - - m_unbounded_sequence_enum_field = std::move(x.m_unbounded_sequence_enum_field); - - - m_unbounded_sequence_enum2_field = std::move(x.m_unbounded_sequence_enum2_field); - - - m_unbounded_sequence_struct_field = std::move(x.m_unbounded_sequence_struct_field); - - return *this; -} - -bool KeyedCompleteTestType::operator ==( - const KeyedCompleteTestType& x) const -{ - return (m_id == x.m_id && - m_char_field == x.m_char_field && - m_uint8_field == x.m_uint8_field && - m_int16_field == x.m_int16_field && - m_uint16_field == x.m_uint16_field && - m_int32_field == x.m_int32_field && - m_uint32_field == x.m_uint32_field && - m_int64_field == x.m_int64_field && - m_uint64_field == x.m_uint64_field && - m_float_field == x.m_float_field && - m_double_field == x.m_double_field && - m_bool_field == x.m_bool_field && - m_string_field == x.m_string_field && - m_enum_field == x.m_enum_field && - m_enum2_field == x.m_enum2_field && - m_struct_field == x.m_struct_field && - m_char_opt_field == x.m_char_opt_field && - m_uint8_opt_field == x.m_uint8_opt_field && - m_int16_opt_field == x.m_int16_opt_field && - m_uint16_opt_field == x.m_uint16_opt_field && - m_int32_opt_field == x.m_int32_opt_field && - m_uint32_opt_field == x.m_uint32_opt_field && - m_int64_opt_field == x.m_int64_opt_field && - m_uint64_opt_field == x.m_uint64_opt_field && - m_float_opt_field == x.m_float_opt_field && - m_double_opt_field == x.m_double_opt_field && - m_bool_opt_field == x.m_bool_opt_field && - m_string_opt_field == x.m_string_opt_field && - m_enum_opt_field == x.m_enum_opt_field && - m_enum2_opt_field == x.m_enum2_opt_field && - m_struct_opt_field == x.m_struct_opt_field && - m_array_char_field == x.m_array_char_field && - m_array_uint8_field == x.m_array_uint8_field && - m_array_int16_field == x.m_array_int16_field && - m_array_uint16_field == x.m_array_uint16_field && - m_array_int32_field == x.m_array_int32_field && - m_array_uint32_field == x.m_array_uint32_field && - m_array_int64_field == x.m_array_int64_field && - m_array_uint64_field == x.m_array_uint64_field && - m_array_float_field == x.m_array_float_field && - m_array_double_field == x.m_array_double_field && - m_array_bool_field == x.m_array_bool_field && - m_array_enum_field == x.m_array_enum_field && - m_array_enum2_field == x.m_array_enum2_field && - m_array_struct_field == x.m_array_struct_field && - m_bounded_sequence_char_field == x.m_bounded_sequence_char_field && - m_bounded_sequence_uint8_field == x.m_bounded_sequence_uint8_field && - m_bounded_sequence_int16_field == x.m_bounded_sequence_int16_field && - m_bounded_sequence_uint16_field == x.m_bounded_sequence_uint16_field && - m_bounded_sequence_int32_field == x.m_bounded_sequence_int32_field && - m_bounded_sequence_uint32_field == x.m_bounded_sequence_uint32_field && - m_bounded_sequence_int64_field == x.m_bounded_sequence_int64_field && - m_bounded_sequence_uint64_field == x.m_bounded_sequence_uint64_field && - m_bounded_sequence_float_field == x.m_bounded_sequence_float_field && - m_bounded_sequence_double_field == x.m_bounded_sequence_double_field && - m_bounded_sequence_bool_field == x.m_bounded_sequence_bool_field && - m_bounded_sequence_enum_field == x.m_bounded_sequence_enum_field && - m_bounded_sequence_enum2_field == x.m_bounded_sequence_enum2_field && - m_bounded_sequence_struct_field == x.m_bounded_sequence_struct_field && - m_unbounded_sequence_char_field == x.m_unbounded_sequence_char_field && - m_unbounded_sequence_uint8_field == x.m_unbounded_sequence_uint8_field && - m_unbounded_sequence_int16_field == x.m_unbounded_sequence_int16_field && - m_unbounded_sequence_uint16_field == x.m_unbounded_sequence_uint16_field && - m_unbounded_sequence_int32_field == x.m_unbounded_sequence_int32_field && - m_unbounded_sequence_uint32_field == x.m_unbounded_sequence_uint32_field && - m_unbounded_sequence_int64_field == x.m_unbounded_sequence_int64_field && - m_unbounded_sequence_uint64_field == x.m_unbounded_sequence_uint64_field && - m_unbounded_sequence_float_field == x.m_unbounded_sequence_float_field && - m_unbounded_sequence_double_field == x.m_unbounded_sequence_double_field && - m_unbounded_sequence_bool_field == x.m_unbounded_sequence_bool_field && - m_unbounded_sequence_enum_field == x.m_unbounded_sequence_enum_field && - m_unbounded_sequence_enum2_field == x.m_unbounded_sequence_enum2_field && - m_unbounded_sequence_struct_field == x.m_unbounded_sequence_struct_field); -} - -bool KeyedCompleteTestType::operator !=( - const KeyedCompleteTestType& x) const -{ - return !(*this == x); -} - -size_t KeyedCompleteTestType::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return eprosima_test_KeyedCompleteTestType_max_cdr_typesize; -} - -size_t KeyedCompleteTestType::getCdrSerializedSize( - const KeyedCompleteTestType& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_field(), current_alignment); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 2 + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 8 + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.string_opt_field().size() + 1; - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.struct_opt_field(), current_alignment); - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - - - - current_alignment += (((max_array_size)) * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - current_alignment += (((max_array_size)) * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - - - for(size_t a = 0; a < data.array_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.array_struct_field().at(a), current_alignment); - - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_char_field().size() > 0) - { - current_alignment += (data.bounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.bounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_float_field().size() > 0) - { - current_alignment += (data.bounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_double_field().size() > 0) - { - current_alignment += (data.bounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.bounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.bounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.bounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.bounded_sequence_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.bounded_sequence_struct_field().at(a), current_alignment); - } - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_char_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_char_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint8_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint8_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint16_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint16_field().size() * 2) + eprosima::fastcdr::Cdr::alignment(current_alignment, 2); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint32_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint32_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_int64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_int64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_uint64_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_uint64_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_float_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_float_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_double_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_double_field().size() * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_bool_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_bool_field().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - if (data.unbounded_sequence_enum2_field().size() > 0) - { - current_alignment += (data.unbounded_sequence_enum2_field().size() * 4) + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - } - - - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - for(size_t a = 0; a < data.unbounded_sequence_struct_field().size(); ++a) - { - current_alignment += eprosima::test::StructType::getCdrSerializedSize(data.unbounded_sequence_struct_field().at(a), current_alignment); - } - - - - return current_alignment - initial_alignment; -} - - -void KeyedCompleteTestType::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_id; - - scdr << m_char_field; - - scdr << m_uint8_field; - - scdr << m_int16_field; - - scdr << m_uint16_field; - - scdr << m_int32_field; - - scdr << m_uint32_field; - - scdr << m_int64_field; - - scdr << m_uint64_field; - - scdr << m_float_field; - - scdr << m_double_field; - - scdr << m_bool_field; - - scdr << m_string_field.c_str(); - - scdr << (uint32_t)m_enum_field; - - scdr << (uint32_t)m_enum2_field; - - scdr << m_struct_field; - - scdr << m_char_opt_field; - - scdr << m_uint8_opt_field; - - scdr << m_int16_opt_field; - - scdr << m_uint16_opt_field; - - scdr << m_int32_opt_field; - - scdr << m_uint32_opt_field; - - scdr << m_int64_opt_field; - - scdr << m_uint64_opt_field; - - scdr << m_float_opt_field; - - scdr << m_double_opt_field; - - scdr << m_bool_opt_field; - - scdr << m_string_opt_field.c_str(); - - scdr << (uint32_t)m_enum_opt_field; - - scdr << (uint32_t)m_enum2_opt_field; - - scdr << m_struct_opt_field; - - scdr << m_array_char_field; - - - scdr << m_array_uint8_field; - - - scdr << m_array_int16_field; - - - scdr << m_array_uint16_field; - - - scdr << m_array_int32_field; - - - scdr << m_array_uint32_field; - - - scdr << m_array_int64_field; - - - scdr << m_array_uint64_field; - - - scdr << m_array_float_field; - - - scdr << m_array_double_field; - - - scdr << m_array_bool_field; - - - scdr.serializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - scdr.serializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - scdr << m_array_struct_field; - - - scdr << m_bounded_sequence_char_field; - - - scdr << m_bounded_sequence_uint8_field; - - - scdr << m_bounded_sequence_int16_field; - - - scdr << m_bounded_sequence_uint16_field; - - - scdr << m_bounded_sequence_int32_field; - - - scdr << m_bounded_sequence_uint32_field; - - - scdr << m_bounded_sequence_int64_field; - - - scdr << m_bounded_sequence_uint64_field; - - - scdr << m_bounded_sequence_float_field; - - - scdr << m_bounded_sequence_double_field; - - - scdr << m_bounded_sequence_bool_field; - - - scdr << static_cast(m_bounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), m_bounded_sequence_enum_field.size()); - - - scdr << static_cast(m_bounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), m_bounded_sequence_enum2_field.size()); - - - scdr << m_bounded_sequence_struct_field; - - - scdr << m_unbounded_sequence_char_field; - - - scdr << m_unbounded_sequence_uint8_field; - - - scdr << m_unbounded_sequence_int16_field; - - - scdr << m_unbounded_sequence_uint16_field; - - - scdr << m_unbounded_sequence_int32_field; - - - scdr << m_unbounded_sequence_uint32_field; - - - scdr << m_unbounded_sequence_int64_field; - - - scdr << m_unbounded_sequence_uint64_field; - - - scdr << m_unbounded_sequence_float_field; - - - scdr << m_unbounded_sequence_double_field; - - - scdr << m_unbounded_sequence_bool_field; - - - scdr << static_cast(m_unbounded_sequence_enum_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), m_unbounded_sequence_enum_field.size()); - - - scdr << static_cast(m_unbounded_sequence_enum2_field.size()); - scdr.serializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), m_unbounded_sequence_enum2_field.size()); - - - scdr << m_unbounded_sequence_struct_field; - - -} - -void KeyedCompleteTestType::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_id; - - - - dcdr >> m_char_field; - - - - dcdr >> m_uint8_field; - - - - dcdr >> m_int16_field; - - - - dcdr >> m_uint16_field; - - - - dcdr >> m_int32_field; - - - - dcdr >> m_uint32_field; - - - - dcdr >> m_int64_field; - - - - dcdr >> m_uint64_field; - - - - dcdr >> m_float_field; - - - - dcdr >> m_double_field; - - - - dcdr >> m_bool_field; - - - - dcdr >> m_string_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_field = (eprosima::test::Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_field = (eprosima::test::Material)enum_value; - } - - - - dcdr >> m_struct_field; - - - - dcdr >> m_char_opt_field; - - - - dcdr >> m_uint8_opt_field; - - - - dcdr >> m_int16_opt_field; - - - - dcdr >> m_uint16_opt_field; - - - - dcdr >> m_int32_opt_field; - - - - dcdr >> m_uint32_opt_field; - - - - dcdr >> m_int64_opt_field; - - - - dcdr >> m_uint64_opt_field; - - - - dcdr >> m_float_opt_field; - - - - dcdr >> m_double_opt_field; - - - - dcdr >> m_bool_opt_field; - - - - dcdr >> m_string_opt_field; - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum_opt_field = (eprosima::test::Color)enum_value; - } - - - - { - uint32_t enum_value = 0; - dcdr >> enum_value; - m_enum2_opt_field = (eprosima::test::Material)enum_value; - } - - - - dcdr >> m_struct_opt_field; - - - - dcdr >> m_array_char_field; - - - - dcdr >> m_array_uint8_field; - - - - dcdr >> m_array_int16_field; - - - - dcdr >> m_array_uint16_field; - - - - dcdr >> m_array_int32_field; - - - - dcdr >> m_array_uint32_field; - - - - dcdr >> m_array_int64_field; - - - - dcdr >> m_array_uint64_field; - - - - dcdr >> m_array_float_field; - - - - dcdr >> m_array_double_field; - - - - dcdr >> m_array_bool_field; - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum_field.data()), m_array_enum_field.size()); - - - - dcdr.deserializeArray(reinterpret_cast(m_array_enum2_field.data()), m_array_enum2_field.size()); - - - - dcdr >> m_array_struct_field; - - - - dcdr >> m_bounded_sequence_char_field; - - - - dcdr >> m_bounded_sequence_uint8_field; - - - - dcdr >> m_bounded_sequence_int16_field; - - - - dcdr >> m_bounded_sequence_uint16_field; - - - - dcdr >> m_bounded_sequence_int32_field; - - - - dcdr >> m_bounded_sequence_uint32_field; - - - - dcdr >> m_bounded_sequence_int64_field; - - - - dcdr >> m_bounded_sequence_uint64_field; - - - - dcdr >> m_bounded_sequence_float_field; - - - - dcdr >> m_bounded_sequence_double_field; - - - - dcdr >> m_bounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_bounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_bounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_bounded_sequence_struct_field; - - - - dcdr >> m_unbounded_sequence_char_field; - - - - dcdr >> m_unbounded_sequence_uint8_field; - - - - dcdr >> m_unbounded_sequence_int16_field; - - - - dcdr >> m_unbounded_sequence_uint16_field; - - - - dcdr >> m_unbounded_sequence_int32_field; - - - - dcdr >> m_unbounded_sequence_uint32_field; - - - - dcdr >> m_unbounded_sequence_int64_field; - - - - dcdr >> m_unbounded_sequence_uint64_field; - - - - dcdr >> m_unbounded_sequence_float_field; - - - - dcdr >> m_unbounded_sequence_double_field; - - - - dcdr >> m_unbounded_sequence_bool_field; - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum_field.data()), seq_length); - } - - - - { - uint32_t seq_length = 0; - dcdr >> seq_length; - m_unbounded_sequence_enum2_field.resize(seq_length); - dcdr.deserializeArray(reinterpret_cast(m_unbounded_sequence_enum2_field.data()), seq_length); - } - - - - dcdr >> m_unbounded_sequence_struct_field; - - -} - - -bool KeyedCompleteTestType::isKeyDefined() -{ - return true; -} - -void KeyedCompleteTestType::serializeKey( - eprosima::fastcdr::Cdr& scdr) const -{ - (void) scdr; - - scdr << m_id; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - -/*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ -void KeyedCompleteTestType::id( - int32_t _id) -{ - m_id = _id; -} - -/*! - * @brief This function returns the value of member id - * @return Value of member id - */ -int32_t KeyedCompleteTestType::id() const -{ - return m_id; -} - -/*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ -int32_t& KeyedCompleteTestType::id() -{ - return m_id; -} - - -/*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ -void KeyedCompleteTestType::char_field( - char _char_field) -{ - m_char_field = _char_field; -} - -/*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ -char KeyedCompleteTestType::char_field() const -{ - return m_char_field; -} - -/*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ -char& KeyedCompleteTestType::char_field() -{ - return m_char_field; -} - - -/*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ -void KeyedCompleteTestType::uint8_field( - uint8_t _uint8_field) -{ - m_uint8_field = _uint8_field; -} - -/*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ -uint8_t KeyedCompleteTestType::uint8_field() const -{ - return m_uint8_field; -} - -/*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ -uint8_t& KeyedCompleteTestType::uint8_field() -{ - return m_uint8_field; -} - - -/*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ -void KeyedCompleteTestType::int16_field( - int16_t _int16_field) -{ - m_int16_field = _int16_field; -} - -/*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ -int16_t KeyedCompleteTestType::int16_field() const -{ - return m_int16_field; -} - -/*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ -int16_t& KeyedCompleteTestType::int16_field() -{ - return m_int16_field; -} - - -/*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ -void KeyedCompleteTestType::uint16_field( - uint16_t _uint16_field) -{ - m_uint16_field = _uint16_field; -} - -/*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ -uint16_t KeyedCompleteTestType::uint16_field() const -{ - return m_uint16_field; -} - -/*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ -uint16_t& KeyedCompleteTestType::uint16_field() -{ - return m_uint16_field; -} - - -/*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ -void KeyedCompleteTestType::int32_field( - int32_t _int32_field) -{ - m_int32_field = _int32_field; -} - -/*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ -int32_t KeyedCompleteTestType::int32_field() const -{ - return m_int32_field; -} - -/*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ -int32_t& KeyedCompleteTestType::int32_field() -{ - return m_int32_field; -} - - -/*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ -void KeyedCompleteTestType::uint32_field( - uint32_t _uint32_field) -{ - m_uint32_field = _uint32_field; -} - -/*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ -uint32_t KeyedCompleteTestType::uint32_field() const -{ - return m_uint32_field; -} - -/*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ -uint32_t& KeyedCompleteTestType::uint32_field() -{ - return m_uint32_field; -} - - -/*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ -void KeyedCompleteTestType::int64_field( - int64_t _int64_field) -{ - m_int64_field = _int64_field; -} - -/*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ -int64_t KeyedCompleteTestType::int64_field() const -{ - return m_int64_field; -} - -/*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ -int64_t& KeyedCompleteTestType::int64_field() -{ - return m_int64_field; -} - - -/*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ -void KeyedCompleteTestType::uint64_field( - uint64_t _uint64_field) -{ - m_uint64_field = _uint64_field; -} - -/*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ -uint64_t KeyedCompleteTestType::uint64_field() const -{ - return m_uint64_field; -} - -/*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ -uint64_t& KeyedCompleteTestType::uint64_field() -{ - return m_uint64_field; -} - - -/*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ -void KeyedCompleteTestType::float_field( - float _float_field) -{ - m_float_field = _float_field; -} - -/*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ -float KeyedCompleteTestType::float_field() const -{ - return m_float_field; -} - -/*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ -float& KeyedCompleteTestType::float_field() -{ - return m_float_field; -} - - -/*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ -void KeyedCompleteTestType::double_field( - double _double_field) -{ - m_double_field = _double_field; -} - -/*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ -double KeyedCompleteTestType::double_field() const -{ - return m_double_field; -} - -/*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ -double& KeyedCompleteTestType::double_field() -{ - return m_double_field; -} - - -/*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ -void KeyedCompleteTestType::bool_field( - bool _bool_field) -{ - m_bool_field = _bool_field; -} - -/*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ -bool KeyedCompleteTestType::bool_field() const -{ - return m_bool_field; -} - -/*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ -bool& KeyedCompleteTestType::bool_field() -{ - return m_bool_field; -} - - -/*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ -void KeyedCompleteTestType::string_field( - const std::string& _string_field) -{ - m_string_field = _string_field; -} - -/*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ -void KeyedCompleteTestType::string_field( - std::string&& _string_field) -{ - m_string_field = std::move(_string_field); -} - -/*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ -const std::string& KeyedCompleteTestType::string_field() const -{ - return m_string_field; -} - -/*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ -std::string& KeyedCompleteTestType::string_field() -{ - return m_string_field; -} - - -/*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ -void KeyedCompleteTestType::enum_field( - eprosima::test::Color _enum_field) -{ - m_enum_field = _enum_field; -} - -/*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ -eprosima::test::Color KeyedCompleteTestType::enum_field() const -{ - return m_enum_field; -} - -/*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ -eprosima::test::Color& KeyedCompleteTestType::enum_field() -{ - return m_enum_field; -} - - -/*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ -void KeyedCompleteTestType::enum2_field( - eprosima::test::Material _enum2_field) -{ - m_enum2_field = _enum2_field; -} - -/*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ -eprosima::test::Material KeyedCompleteTestType::enum2_field() const -{ - return m_enum2_field; -} - -/*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ -eprosima::test::Material& KeyedCompleteTestType::enum2_field() -{ - return m_enum2_field; -} - - -/*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ -void KeyedCompleteTestType::struct_field( - const eprosima::test::StructType& _struct_field) -{ - m_struct_field = _struct_field; -} - -/*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ -void KeyedCompleteTestType::struct_field( - eprosima::test::StructType&& _struct_field) -{ - m_struct_field = std::move(_struct_field); -} - -/*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ -const eprosima::test::StructType& KeyedCompleteTestType::struct_field() const -{ - return m_struct_field; -} - -/*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ -eprosima::test::StructType& KeyedCompleteTestType::struct_field() -{ - return m_struct_field; -} - - -/*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ -void KeyedCompleteTestType::char_opt_field( - char _char_opt_field) -{ - m_char_opt_field = _char_opt_field; -} - -/*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ -char KeyedCompleteTestType::char_opt_field() const -{ - return m_char_opt_field; -} - -/*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ -char& KeyedCompleteTestType::char_opt_field() -{ - return m_char_opt_field; -} - - -/*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ -void KeyedCompleteTestType::uint8_opt_field( - uint8_t _uint8_opt_field) -{ - m_uint8_opt_field = _uint8_opt_field; -} - -/*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ -uint8_t KeyedCompleteTestType::uint8_opt_field() const -{ - return m_uint8_opt_field; -} - -/*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ -uint8_t& KeyedCompleteTestType::uint8_opt_field() -{ - return m_uint8_opt_field; -} - - -/*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ -void KeyedCompleteTestType::int16_opt_field( - int16_t _int16_opt_field) -{ - m_int16_opt_field = _int16_opt_field; -} - -/*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ -int16_t KeyedCompleteTestType::int16_opt_field() const -{ - return m_int16_opt_field; -} - -/*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ -int16_t& KeyedCompleteTestType::int16_opt_field() -{ - return m_int16_opt_field; -} - - -/*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ -void KeyedCompleteTestType::uint16_opt_field( - uint16_t _uint16_opt_field) -{ - m_uint16_opt_field = _uint16_opt_field; -} - -/*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ -uint16_t KeyedCompleteTestType::uint16_opt_field() const -{ - return m_uint16_opt_field; -} - -/*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ -uint16_t& KeyedCompleteTestType::uint16_opt_field() -{ - return m_uint16_opt_field; -} - - -/*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ -void KeyedCompleteTestType::int32_opt_field( - int32_t _int32_opt_field) -{ - m_int32_opt_field = _int32_opt_field; -} - -/*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ -int32_t KeyedCompleteTestType::int32_opt_field() const -{ - return m_int32_opt_field; -} - -/*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ -int32_t& KeyedCompleteTestType::int32_opt_field() -{ - return m_int32_opt_field; -} - - -/*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ -void KeyedCompleteTestType::uint32_opt_field( - uint32_t _uint32_opt_field) -{ - m_uint32_opt_field = _uint32_opt_field; -} - -/*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ -uint32_t KeyedCompleteTestType::uint32_opt_field() const -{ - return m_uint32_opt_field; -} - -/*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ -uint32_t& KeyedCompleteTestType::uint32_opt_field() -{ - return m_uint32_opt_field; -} - - -/*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ -void KeyedCompleteTestType::int64_opt_field( - int64_t _int64_opt_field) -{ - m_int64_opt_field = _int64_opt_field; -} - -/*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ -int64_t KeyedCompleteTestType::int64_opt_field() const -{ - return m_int64_opt_field; -} - -/*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ -int64_t& KeyedCompleteTestType::int64_opt_field() -{ - return m_int64_opt_field; -} - - -/*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ -void KeyedCompleteTestType::uint64_opt_field( - uint64_t _uint64_opt_field) -{ - m_uint64_opt_field = _uint64_opt_field; -} - -/*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ -uint64_t KeyedCompleteTestType::uint64_opt_field() const -{ - return m_uint64_opt_field; -} - -/*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ -uint64_t& KeyedCompleteTestType::uint64_opt_field() -{ - return m_uint64_opt_field; -} - - -/*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ -void KeyedCompleteTestType::float_opt_field( - float _float_opt_field) -{ - m_float_opt_field = _float_opt_field; -} - -/*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ -float KeyedCompleteTestType::float_opt_field() const -{ - return m_float_opt_field; -} - -/*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ -float& KeyedCompleteTestType::float_opt_field() -{ - return m_float_opt_field; -} - - -/*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ -void KeyedCompleteTestType::double_opt_field( - double _double_opt_field) -{ - m_double_opt_field = _double_opt_field; -} - -/*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ -double KeyedCompleteTestType::double_opt_field() const -{ - return m_double_opt_field; -} - -/*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ -double& KeyedCompleteTestType::double_opt_field() -{ - return m_double_opt_field; -} - - -/*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ -void KeyedCompleteTestType::bool_opt_field( - bool _bool_opt_field) -{ - m_bool_opt_field = _bool_opt_field; -} - -/*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ -bool KeyedCompleteTestType::bool_opt_field() const -{ - return m_bool_opt_field; -} - -/*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ -bool& KeyedCompleteTestType::bool_opt_field() -{ - return m_bool_opt_field; -} - - -/*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - const std::string& _string_opt_field) -{ - m_string_opt_field = _string_opt_field; -} - -/*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ -void KeyedCompleteTestType::string_opt_field( - std::string&& _string_opt_field) -{ - m_string_opt_field = std::move(_string_opt_field); -} - -/*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ -const std::string& KeyedCompleteTestType::string_opt_field() const -{ - return m_string_opt_field; -} - -/*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ -std::string& KeyedCompleteTestType::string_opt_field() -{ - return m_string_opt_field; -} - - -/*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ -void KeyedCompleteTestType::enum_opt_field( - eprosima::test::Color _enum_opt_field) -{ - m_enum_opt_field = _enum_opt_field; -} - -/*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ -eprosima::test::Color KeyedCompleteTestType::enum_opt_field() const -{ - return m_enum_opt_field; -} - -/*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ -eprosima::test::Color& KeyedCompleteTestType::enum_opt_field() -{ - return m_enum_opt_field; -} - - -/*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ -void KeyedCompleteTestType::enum2_opt_field( - eprosima::test::Material _enum2_opt_field) -{ - m_enum2_opt_field = _enum2_opt_field; -} - -/*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ -eprosima::test::Material KeyedCompleteTestType::enum2_opt_field() const -{ - return m_enum2_opt_field; -} - -/*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ -eprosima::test::Material& KeyedCompleteTestType::enum2_opt_field() -{ - return m_enum2_opt_field; -} - - -/*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - const eprosima::test::StructType& _struct_opt_field) -{ - m_struct_opt_field = _struct_opt_field; -} - -/*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ -void KeyedCompleteTestType::struct_opt_field( - eprosima::test::StructType&& _struct_opt_field) -{ - m_struct_opt_field = std::move(_struct_opt_field); -} - -/*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ -const eprosima::test::StructType& KeyedCompleteTestType::struct_opt_field() const -{ - return m_struct_opt_field; -} - -/*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ -eprosima::test::StructType& KeyedCompleteTestType::struct_opt_field() -{ - return m_struct_opt_field; -} - - -/*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - const std::array& _array_char_field) -{ - m_array_char_field = _array_char_field; -} - -/*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ -void KeyedCompleteTestType::array_char_field( - std::array&& _array_char_field) -{ - m_array_char_field = std::move(_array_char_field); -} - -/*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ -const std::array& KeyedCompleteTestType::array_char_field() const -{ - return m_array_char_field; -} - -/*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ -std::array& KeyedCompleteTestType::array_char_field() -{ - return m_array_char_field; -} - - -/*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - const std::array& _array_uint8_field) -{ - m_array_uint8_field = _array_uint8_field; -} - -/*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ -void KeyedCompleteTestType::array_uint8_field( - std::array&& _array_uint8_field) -{ - m_array_uint8_field = std::move(_array_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ -const std::array& KeyedCompleteTestType::array_uint8_field() const -{ - return m_array_uint8_field; -} - -/*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ -std::array& KeyedCompleteTestType::array_uint8_field() -{ - return m_array_uint8_field; -} - - -/*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - const std::array& _array_int16_field) -{ - m_array_int16_field = _array_int16_field; -} - -/*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ -void KeyedCompleteTestType::array_int16_field( - std::array&& _array_int16_field) -{ - m_array_int16_field = std::move(_array_int16_field); -} - -/*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ -const std::array& KeyedCompleteTestType::array_int16_field() const -{ - return m_array_int16_field; -} - -/*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ -std::array& KeyedCompleteTestType::array_int16_field() -{ - return m_array_int16_field; -} - - -/*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - const std::array& _array_uint16_field) -{ - m_array_uint16_field = _array_uint16_field; -} - -/*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ -void KeyedCompleteTestType::array_uint16_field( - std::array&& _array_uint16_field) -{ - m_array_uint16_field = std::move(_array_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ -const std::array& KeyedCompleteTestType::array_uint16_field() const -{ - return m_array_uint16_field; -} - -/*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ -std::array& KeyedCompleteTestType::array_uint16_field() -{ - return m_array_uint16_field; -} - - -/*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - const std::array& _array_int32_field) -{ - m_array_int32_field = _array_int32_field; -} - -/*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ -void KeyedCompleteTestType::array_int32_field( - std::array&& _array_int32_field) -{ - m_array_int32_field = std::move(_array_int32_field); -} - -/*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ -const std::array& KeyedCompleteTestType::array_int32_field() const -{ - return m_array_int32_field; -} - -/*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ -std::array& KeyedCompleteTestType::array_int32_field() -{ - return m_array_int32_field; -} - - -/*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - const std::array& _array_uint32_field) -{ - m_array_uint32_field = _array_uint32_field; -} - -/*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ -void KeyedCompleteTestType::array_uint32_field( - std::array&& _array_uint32_field) -{ - m_array_uint32_field = std::move(_array_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ -const std::array& KeyedCompleteTestType::array_uint32_field() const -{ - return m_array_uint32_field; -} - -/*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ -std::array& KeyedCompleteTestType::array_uint32_field() -{ - return m_array_uint32_field; -} - - -/*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - const std::array& _array_int64_field) -{ - m_array_int64_field = _array_int64_field; -} - -/*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ -void KeyedCompleteTestType::array_int64_field( - std::array&& _array_int64_field) -{ - m_array_int64_field = std::move(_array_int64_field); -} - -/*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ -const std::array& KeyedCompleteTestType::array_int64_field() const -{ - return m_array_int64_field; -} - -/*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ -std::array& KeyedCompleteTestType::array_int64_field() -{ - return m_array_int64_field; -} - - -/*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - const std::array& _array_uint64_field) -{ - m_array_uint64_field = _array_uint64_field; -} - -/*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ -void KeyedCompleteTestType::array_uint64_field( - std::array&& _array_uint64_field) -{ - m_array_uint64_field = std::move(_array_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ -const std::array& KeyedCompleteTestType::array_uint64_field() const -{ - return m_array_uint64_field; -} - -/*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ -std::array& KeyedCompleteTestType::array_uint64_field() -{ - return m_array_uint64_field; -} - - -/*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - const std::array& _array_float_field) -{ - m_array_float_field = _array_float_field; -} - -/*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ -void KeyedCompleteTestType::array_float_field( - std::array&& _array_float_field) -{ - m_array_float_field = std::move(_array_float_field); -} - -/*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ -const std::array& KeyedCompleteTestType::array_float_field() const -{ - return m_array_float_field; -} - -/*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ -std::array& KeyedCompleteTestType::array_float_field() -{ - return m_array_float_field; -} - - -/*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - const std::array& _array_double_field) -{ - m_array_double_field = _array_double_field; -} - -/*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ -void KeyedCompleteTestType::array_double_field( - std::array&& _array_double_field) -{ - m_array_double_field = std::move(_array_double_field); -} - -/*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ -const std::array& KeyedCompleteTestType::array_double_field() const -{ - return m_array_double_field; -} - -/*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ -std::array& KeyedCompleteTestType::array_double_field() -{ - return m_array_double_field; -} - - -/*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - const std::array& _array_bool_field) -{ - m_array_bool_field = _array_bool_field; -} - -/*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ -void KeyedCompleteTestType::array_bool_field( - std::array&& _array_bool_field) -{ - m_array_bool_field = std::move(_array_bool_field); -} - -/*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ -const std::array& KeyedCompleteTestType::array_bool_field() const -{ - return m_array_bool_field; -} - -/*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ -std::array& KeyedCompleteTestType::array_bool_field() -{ - return m_array_bool_field; -} - - -/*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - const std::array& _array_enum_field) -{ - m_array_enum_field = _array_enum_field; -} - -/*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ -void KeyedCompleteTestType::array_enum_field( - std::array&& _array_enum_field) -{ - m_array_enum_field = std::move(_array_enum_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ -const std::array& KeyedCompleteTestType::array_enum_field() const -{ - return m_array_enum_field; -} - -/*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ -std::array& KeyedCompleteTestType::array_enum_field() -{ - return m_array_enum_field; -} - - -/*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - const std::array& _array_enum2_field) -{ - m_array_enum2_field = _array_enum2_field; -} - -/*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ -void KeyedCompleteTestType::array_enum2_field( - std::array&& _array_enum2_field) -{ - m_array_enum2_field = std::move(_array_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ -const std::array& KeyedCompleteTestType::array_enum2_field() const -{ - return m_array_enum2_field; -} - -/*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ -std::array& KeyedCompleteTestType::array_enum2_field() -{ - return m_array_enum2_field; -} - - -/*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - const std::array& _array_struct_field) -{ - m_array_struct_field = _array_struct_field; -} - -/*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ -void KeyedCompleteTestType::array_struct_field( - std::array&& _array_struct_field) -{ - m_array_struct_field = std::move(_array_struct_field); -} - -/*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ -const std::array& KeyedCompleteTestType::array_struct_field() const -{ - return m_array_struct_field; -} - -/*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ -std::array& KeyedCompleteTestType::array_struct_field() -{ - return m_array_struct_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = _bounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ -void KeyedCompleteTestType::bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field) -{ - m_bounded_sequence_char_field = std::move(_bounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_char_field() const -{ - return m_bounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_char_field() -{ - return m_bounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = _bounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ -void KeyedCompleteTestType::bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field) -{ - m_bounded_sequence_uint8_field = std::move(_bounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() const -{ - return m_bounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint8_field() -{ - return m_bounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = _bounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ -void KeyedCompleteTestType::bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field) -{ - m_bounded_sequence_int16_field = std::move(_bounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() const -{ - return m_bounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int16_field() -{ - return m_bounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = _bounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ -void KeyedCompleteTestType::bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field) -{ - m_bounded_sequence_uint16_field = std::move(_bounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() const -{ - return m_bounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint16_field() -{ - return m_bounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = _bounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ -void KeyedCompleteTestType::bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field) -{ - m_bounded_sequence_int32_field = std::move(_bounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() const -{ - return m_bounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int32_field() -{ - return m_bounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = _bounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ -void KeyedCompleteTestType::bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field) -{ - m_bounded_sequence_uint32_field = std::move(_bounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() const -{ - return m_bounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint32_field() -{ - return m_bounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = _bounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ -void KeyedCompleteTestType::bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field) -{ - m_bounded_sequence_int64_field = std::move(_bounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() const -{ - return m_bounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_int64_field() -{ - return m_bounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = _bounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ -void KeyedCompleteTestType::bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field) -{ - m_bounded_sequence_uint64_field = std::move(_bounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() const -{ - return m_bounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_uint64_field() -{ - return m_bounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = _bounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ -void KeyedCompleteTestType::bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field) -{ - m_bounded_sequence_float_field = std::move(_bounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_float_field() const -{ - return m_bounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_float_field() -{ - return m_bounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = _bounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ -void KeyedCompleteTestType::bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field) -{ - m_bounded_sequence_double_field = std::move(_bounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_double_field() const -{ - return m_bounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_double_field() -{ - return m_bounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = _bounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ -void KeyedCompleteTestType::bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field) -{ - m_bounded_sequence_bool_field = std::move(_bounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() const -{ - return m_bounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_bool_field() -{ - return m_bounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = _bounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ -void KeyedCompleteTestType::bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field) -{ - m_bounded_sequence_enum_field = std::move(_bounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() const -{ - return m_bounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum_field() -{ - return m_bounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = _bounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ -void KeyedCompleteTestType::bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field) -{ - m_bounded_sequence_enum2_field = std::move(_bounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() const -{ - return m_bounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_enum2_field() -{ - return m_bounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = _bounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ -void KeyedCompleteTestType::bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field) -{ - m_bounded_sequence_struct_field = std::move(_bounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() const -{ - return m_bounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::bounded_sequence_struct_field() -{ - return m_bounded_sequence_struct_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = _unbounded_sequence_char_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ -void KeyedCompleteTestType::unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field) -{ - m_unbounded_sequence_char_field = std::move(_unbounded_sequence_char_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() const -{ - return m_unbounded_sequence_char_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_char_field() -{ - return m_unbounded_sequence_char_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = _unbounded_sequence_uint8_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field) -{ - m_unbounded_sequence_uint8_field = std::move(_unbounded_sequence_uint8_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() const -{ - return m_unbounded_sequence_uint8_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint8_field() -{ - return m_unbounded_sequence_uint8_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = _unbounded_sequence_int16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ -void KeyedCompleteTestType::unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field) -{ - m_unbounded_sequence_int16_field = std::move(_unbounded_sequence_int16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() const -{ - return m_unbounded_sequence_int16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int16_field() -{ - return m_unbounded_sequence_int16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = _unbounded_sequence_uint16_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field) -{ - m_unbounded_sequence_uint16_field = std::move(_unbounded_sequence_uint16_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() const -{ - return m_unbounded_sequence_uint16_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint16_field() -{ - return m_unbounded_sequence_uint16_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = _unbounded_sequence_int32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ -void KeyedCompleteTestType::unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field) -{ - m_unbounded_sequence_int32_field = std::move(_unbounded_sequence_int32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() const -{ - return m_unbounded_sequence_int32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int32_field() -{ - return m_unbounded_sequence_int32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = _unbounded_sequence_uint32_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field) -{ - m_unbounded_sequence_uint32_field = std::move(_unbounded_sequence_uint32_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() const -{ - return m_unbounded_sequence_uint32_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint32_field() -{ - return m_unbounded_sequence_uint32_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = _unbounded_sequence_int64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ -void KeyedCompleteTestType::unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field) -{ - m_unbounded_sequence_int64_field = std::move(_unbounded_sequence_int64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() const -{ - return m_unbounded_sequence_int64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_int64_field() -{ - return m_unbounded_sequence_int64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = _unbounded_sequence_uint64_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ -void KeyedCompleteTestType::unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field) -{ - m_unbounded_sequence_uint64_field = std::move(_unbounded_sequence_uint64_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() const -{ - return m_unbounded_sequence_uint64_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_uint64_field() -{ - return m_unbounded_sequence_uint64_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = _unbounded_sequence_float_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ -void KeyedCompleteTestType::unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field) -{ - m_unbounded_sequence_float_field = std::move(_unbounded_sequence_float_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() const -{ - return m_unbounded_sequence_float_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_float_field() -{ - return m_unbounded_sequence_float_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = _unbounded_sequence_double_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ -void KeyedCompleteTestType::unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field) -{ - m_unbounded_sequence_double_field = std::move(_unbounded_sequence_double_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() const -{ - return m_unbounded_sequence_double_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_double_field() -{ - return m_unbounded_sequence_double_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = _unbounded_sequence_bool_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ -void KeyedCompleteTestType::unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field) -{ - m_unbounded_sequence_bool_field = std::move(_unbounded_sequence_bool_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() const -{ - return m_unbounded_sequence_bool_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_bool_field() -{ - return m_unbounded_sequence_bool_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = _unbounded_sequence_enum_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field) -{ - m_unbounded_sequence_enum_field = std::move(_unbounded_sequence_enum_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() const -{ - return m_unbounded_sequence_enum_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum_field() -{ - return m_unbounded_sequence_enum_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = _unbounded_sequence_enum2_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ -void KeyedCompleteTestType::unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field) -{ - m_unbounded_sequence_enum2_field = std::move(_unbounded_sequence_enum2_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() const -{ - return m_unbounded_sequence_enum2_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_enum2_field() -{ - return m_unbounded_sequence_enum2_field; -} - - -/*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = _unbounded_sequence_struct_field; -} - -/*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ -void KeyedCompleteTestType::unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field) -{ - m_unbounded_sequence_struct_field = std::move(_unbounded_sequence_struct_field); -} - -/*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ -const std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() const -{ - return m_unbounded_sequence_struct_field; -} - -/*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ -std::vector& KeyedCompleteTestType::unbounded_sequence_struct_field() -{ - return m_unbounded_sequence_struct_field; -} - - - - - -} // namespace test - - -} // namespace eprosima - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python/test/types/test_modulesv1.h b/fastdds_python/test/types/test_modulesv1.h deleted file mode 100644 index 4bee87f3..00000000 --- a/fastdds_python/test/types/test_modulesv1.h +++ /dev/null @@ -1,4457 +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 test_modules.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_EPROSIMA_TEST_TEST_MODULES_H_ -#define _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_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(TEST_MODULES_SOURCE) -#define TEST_MODULES_DllAPI __declspec( dllexport ) -#else -#define TEST_MODULES_DllAPI __declspec( dllimport ) -#endif // TEST_MODULES_SOURCE -#else -#define TEST_MODULES_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define TEST_MODULES_DllAPI -#endif // _WIN32 - -namespace eprosima { -namespace fastcdr { -class Cdr; -} // namespace fastcdr -} // namespace eprosima - - - -namespace eprosima { - namespace test { - /*! - * @brief This class represents the enumeration Color defined by the user in the IDL file. - * @ingroup test_modules - */ - enum Color : uint32_t - { - RED, - GREEN, - BLUE, - YELLOW, - MAGENTA - }; - /*! - * @brief This class represents the enumeration Material defined by the user in the IDL file. - * @ingroup test_modules - */ - enum Material : uint32_t - { - WOOD, - PLASTIC, - METAL, - CONCRETE, - STONE - }; - - - /*! - * @brief This class represents the structure StructType defined by the user in the IDL file. - * @ingroup test_modules - */ - class StructType - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport StructType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~StructType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::test::StructType that will be copied. - */ - eProsima_user_DllExport StructType( - const StructType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::test::StructType that will be copied. - */ - eProsima_user_DllExport StructType( - StructType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::test::StructType that will be copied. - */ - eProsima_user_DllExport StructType& operator =( - const StructType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::test::StructType that will be copied. - */ - eProsima_user_DllExport StructType& operator =( - StructType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::StructType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const StructType& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::StructType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const StructType& x) const; - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); - - - /*! - * @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 eprosima::test::StructType& 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: - - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - eprosima::test::Color m_enum_field; - eprosima::test::Material m_enum2_field; - - }; - - const uint32_t max_array_size = 3; - - const uint32_t max_seq_size = 5; - - - - - - /*! - * @brief This class represents the structure CompleteTestType defined by the user in the IDL file. - * @ingroup test_modules - */ - class CompleteTestType - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport CompleteTestType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~CompleteTestType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType( - const CompleteTestType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType( - CompleteTestType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType& operator =( - const CompleteTestType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::test::CompleteTestType that will be copied. - */ - eProsima_user_DllExport CompleteTestType& operator =( - CompleteTestType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::CompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const CompleteTestType& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::CompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const CompleteTestType& x) const; - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); - - - /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ - eProsima_user_DllExport void struct_field( - const eprosima::test::StructType& _struct_field); - - /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ - eProsima_user_DllExport void struct_field( - eprosima::test::StructType&& _struct_field); - - /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ - eProsima_user_DllExport const eprosima::test::StructType& struct_field() const; - - /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ - eProsima_user_DllExport eprosima::test::StructType& struct_field(); - - - /*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ - eProsima_user_DllExport void char_opt_field( - char _char_opt_field); - - /*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ - eProsima_user_DllExport char char_opt_field() const; - - /*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ - eProsima_user_DllExport char& char_opt_field(); - - - /*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ - eProsima_user_DllExport void uint8_opt_field( - uint8_t _uint8_opt_field); - - /*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ - eProsima_user_DllExport uint8_t uint8_opt_field() const; - - /*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ - eProsima_user_DllExport uint8_t& uint8_opt_field(); - - - /*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ - eProsima_user_DllExport void int16_opt_field( - int16_t _int16_opt_field); - - /*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ - eProsima_user_DllExport int16_t int16_opt_field() const; - - /*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ - eProsima_user_DllExport int16_t& int16_opt_field(); - - - /*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ - eProsima_user_DllExport void uint16_opt_field( - uint16_t _uint16_opt_field); - - /*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ - eProsima_user_DllExport uint16_t uint16_opt_field() const; - - /*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ - eProsima_user_DllExport uint16_t& uint16_opt_field(); - - - /*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ - eProsima_user_DllExport void int32_opt_field( - int32_t _int32_opt_field); - - /*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ - eProsima_user_DllExport int32_t int32_opt_field() const; - - /*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ - eProsima_user_DllExport int32_t& int32_opt_field(); - - - /*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ - eProsima_user_DllExport void uint32_opt_field( - uint32_t _uint32_opt_field); - - /*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ - eProsima_user_DllExport uint32_t uint32_opt_field() const; - - /*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ - eProsima_user_DllExport uint32_t& uint32_opt_field(); - - - /*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ - eProsima_user_DllExport void int64_opt_field( - int64_t _int64_opt_field); - - /*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ - eProsima_user_DllExport int64_t int64_opt_field() const; - - /*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ - eProsima_user_DllExport int64_t& int64_opt_field(); - - - /*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ - eProsima_user_DllExport void uint64_opt_field( - uint64_t _uint64_opt_field); - - /*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ - eProsima_user_DllExport uint64_t uint64_opt_field() const; - - /*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ - eProsima_user_DllExport uint64_t& uint64_opt_field(); - - - /*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ - eProsima_user_DllExport void float_opt_field( - float _float_opt_field); - - /*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ - eProsima_user_DllExport float float_opt_field() const; - - /*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ - eProsima_user_DllExport float& float_opt_field(); - - - /*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ - eProsima_user_DllExport void double_opt_field( - double _double_opt_field); - - /*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ - eProsima_user_DllExport double double_opt_field() const; - - /*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ - eProsima_user_DllExport double& double_opt_field(); - - - /*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ - eProsima_user_DllExport void bool_opt_field( - bool _bool_opt_field); - - /*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ - eProsima_user_DllExport bool bool_opt_field() const; - - /*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ - eProsima_user_DllExport bool& bool_opt_field(); - - - /*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - const std::string& _string_opt_field); - - /*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - std::string&& _string_opt_field); - - /*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ - eProsima_user_DllExport const std::string& string_opt_field() const; - - /*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ - eProsima_user_DllExport std::string& string_opt_field(); - - - /*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ - eProsima_user_DllExport void enum_opt_field( - eprosima::test::Color _enum_opt_field); - - /*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ - eProsima_user_DllExport eprosima::test::Color enum_opt_field() const; - - /*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ - eProsima_user_DllExport eprosima::test::Color& enum_opt_field(); - - - /*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ - eProsima_user_DllExport void enum2_opt_field( - eprosima::test::Material _enum2_opt_field); - - /*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ - eProsima_user_DllExport eprosima::test::Material enum2_opt_field() const; - - /*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ - eProsima_user_DllExport eprosima::test::Material& enum2_opt_field(); - - - /*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - const eprosima::test::StructType& _struct_opt_field); - - /*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - eprosima::test::StructType&& _struct_opt_field); - - /*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ - eProsima_user_DllExport const eprosima::test::StructType& struct_opt_field() const; - - /*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ - eProsima_user_DllExport eprosima::test::StructType& struct_opt_field(); - - - /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); - - /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); - - /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ - eProsima_user_DllExport const std::array& array_char_field() const; - - /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ - eProsima_user_DllExport std::array& array_char_field(); - - - /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); - - /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); - - /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ - eProsima_user_DllExport const std::array& array_uint8_field() const; - - /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ - eProsima_user_DllExport std::array& array_uint8_field(); - - - /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); - - /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); - - /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ - eProsima_user_DllExport const std::array& array_int16_field() const; - - /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ - eProsima_user_DllExport std::array& array_int16_field(); - - - /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); - - /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); - - /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ - eProsima_user_DllExport const std::array& array_uint16_field() const; - - /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ - eProsima_user_DllExport std::array& array_uint16_field(); - - - /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); - - /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); - - /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ - eProsima_user_DllExport const std::array& array_int32_field() const; - - /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ - eProsima_user_DllExport std::array& array_int32_field(); - - - /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); - - /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); - - /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ - eProsima_user_DllExport const std::array& array_uint32_field() const; - - /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ - eProsima_user_DllExport std::array& array_uint32_field(); - - - /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); - - /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); - - /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ - eProsima_user_DllExport const std::array& array_int64_field() const; - - /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ - eProsima_user_DllExport std::array& array_int64_field(); - - - /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); - - /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); - - /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ - eProsima_user_DllExport const std::array& array_uint64_field() const; - - /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ - eProsima_user_DllExport std::array& array_uint64_field(); - - - /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); - - /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); - - /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ - eProsima_user_DllExport const std::array& array_float_field() const; - - /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ - eProsima_user_DllExport std::array& array_float_field(); - - - /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); - - /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); - - /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ - eProsima_user_DllExport const std::array& array_double_field() const; - - /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ - eProsima_user_DllExport std::array& array_double_field(); - - - /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); - - /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); - - /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ - eProsima_user_DllExport const std::array& array_bool_field() const; - - /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ - eProsima_user_DllExport std::array& array_bool_field(); - - - /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); - - /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); - - /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ - eProsima_user_DllExport const std::array& array_enum_field() const; - - /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ - eProsima_user_DllExport std::array& array_enum_field(); - - - /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); - - /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); - - /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ - eProsima_user_DllExport const std::array& array_enum2_field() const; - - /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ - eProsima_user_DllExport std::array& array_enum2_field(); - - - /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); - - /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); - - /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ - eProsima_user_DllExport const std::array& array_struct_field() const; - - /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ - eProsima_user_DllExport std::array& array_struct_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); - - /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); - - /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); - - /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); - - - /*! - * @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 eprosima::test::CompleteTestType& 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: - - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - eprosima::test::Color m_enum_field; - eprosima::test::Material m_enum2_field; - eprosima::test::StructType m_struct_field; - char m_char_opt_field; - uint8_t m_uint8_opt_field; - int16_t m_int16_opt_field; - uint16_t m_uint16_opt_field; - int32_t m_int32_opt_field; - uint32_t m_uint32_opt_field; - int64_t m_int64_opt_field; - uint64_t m_uint64_opt_field; - float m_float_opt_field; - double m_double_opt_field; - bool m_bool_opt_field; - std::string m_string_opt_field; - eprosima::test::Color m_enum_opt_field; - eprosima::test::Material m_enum2_opt_field; - eprosima::test::StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; - std::vector m_bounded_sequence_char_field; - std::vector m_bounded_sequence_uint8_field; - std::vector m_bounded_sequence_int16_field; - std::vector m_bounded_sequence_uint16_field; - std::vector m_bounded_sequence_int32_field; - std::vector m_bounded_sequence_uint32_field; - std::vector m_bounded_sequence_int64_field; - std::vector m_bounded_sequence_uint64_field; - std::vector m_bounded_sequence_float_field; - std::vector m_bounded_sequence_double_field; - std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; - std::vector m_unbounded_sequence_char_field; - std::vector m_unbounded_sequence_uint8_field; - std::vector m_unbounded_sequence_int16_field; - std::vector m_unbounded_sequence_uint16_field; - std::vector m_unbounded_sequence_int32_field; - std::vector m_unbounded_sequence_uint32_field; - std::vector m_unbounded_sequence_int64_field; - std::vector m_unbounded_sequence_uint64_field; - std::vector m_unbounded_sequence_float_field; - std::vector m_unbounded_sequence_double_field; - std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; - - }; - - - - - - /*! - * @brief This class represents the structure KeyedCompleteTestType defined by the user in the IDL file. - * @ingroup test_modules - */ - class KeyedCompleteTestType - { - public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport KeyedCompleteTestType(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~KeyedCompleteTestType(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType( - const KeyedCompleteTestType& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType( - KeyedCompleteTestType&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType& operator =( - const KeyedCompleteTestType& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object eprosima::test::KeyedCompleteTestType that will be copied. - */ - eProsima_user_DllExport KeyedCompleteTestType& operator =( - KeyedCompleteTestType&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::KeyedCompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator ==( - const KeyedCompleteTestType& x) const; - - /*! - * @brief Comparison operator. - * @param x eprosima::test::KeyedCompleteTestType object to compare. - */ - eProsima_user_DllExport bool operator !=( - const KeyedCompleteTestType& x) const; - - /*! - * @brief This function sets a value in member id - * @param _id New value for member id - */ - eProsima_user_DllExport void id( - int32_t _id); - - /*! - * @brief This function returns the value of member id - * @return Value of member id - */ - eProsima_user_DllExport int32_t id() const; - - /*! - * @brief This function returns a reference to member id - * @return Reference to member id - */ - eProsima_user_DllExport int32_t& id(); - - - /*! - * @brief This function sets a value in member char_field - * @param _char_field New value for member char_field - */ - eProsima_user_DllExport void char_field( - char _char_field); - - /*! - * @brief This function returns the value of member char_field - * @return Value of member char_field - */ - eProsima_user_DllExport char char_field() const; - - /*! - * @brief This function returns a reference to member char_field - * @return Reference to member char_field - */ - eProsima_user_DllExport char& char_field(); - - - /*! - * @brief This function sets a value in member uint8_field - * @param _uint8_field New value for member uint8_field - */ - eProsima_user_DllExport void uint8_field( - uint8_t _uint8_field); - - /*! - * @brief This function returns the value of member uint8_field - * @return Value of member uint8_field - */ - eProsima_user_DllExport uint8_t uint8_field() const; - - /*! - * @brief This function returns a reference to member uint8_field - * @return Reference to member uint8_field - */ - eProsima_user_DllExport uint8_t& uint8_field(); - - - /*! - * @brief This function sets a value in member int16_field - * @param _int16_field New value for member int16_field - */ - eProsima_user_DllExport void int16_field( - int16_t _int16_field); - - /*! - * @brief This function returns the value of member int16_field - * @return Value of member int16_field - */ - eProsima_user_DllExport int16_t int16_field() const; - - /*! - * @brief This function returns a reference to member int16_field - * @return Reference to member int16_field - */ - eProsima_user_DllExport int16_t& int16_field(); - - - /*! - * @brief This function sets a value in member uint16_field - * @param _uint16_field New value for member uint16_field - */ - eProsima_user_DllExport void uint16_field( - uint16_t _uint16_field); - - /*! - * @brief This function returns the value of member uint16_field - * @return Value of member uint16_field - */ - eProsima_user_DllExport uint16_t uint16_field() const; - - /*! - * @brief This function returns a reference to member uint16_field - * @return Reference to member uint16_field - */ - eProsima_user_DllExport uint16_t& uint16_field(); - - - /*! - * @brief This function sets a value in member int32_field - * @param _int32_field New value for member int32_field - */ - eProsima_user_DllExport void int32_field( - int32_t _int32_field); - - /*! - * @brief This function returns the value of member int32_field - * @return Value of member int32_field - */ - eProsima_user_DllExport int32_t int32_field() const; - - /*! - * @brief This function returns a reference to member int32_field - * @return Reference to member int32_field - */ - eProsima_user_DllExport int32_t& int32_field(); - - - /*! - * @brief This function sets a value in member uint32_field - * @param _uint32_field New value for member uint32_field - */ - eProsima_user_DllExport void uint32_field( - uint32_t _uint32_field); - - /*! - * @brief This function returns the value of member uint32_field - * @return Value of member uint32_field - */ - eProsima_user_DllExport uint32_t uint32_field() const; - - /*! - * @brief This function returns a reference to member uint32_field - * @return Reference to member uint32_field - */ - eProsima_user_DllExport uint32_t& uint32_field(); - - - /*! - * @brief This function sets a value in member int64_field - * @param _int64_field New value for member int64_field - */ - eProsima_user_DllExport void int64_field( - int64_t _int64_field); - - /*! - * @brief This function returns the value of member int64_field - * @return Value of member int64_field - */ - eProsima_user_DllExport int64_t int64_field() const; - - /*! - * @brief This function returns a reference to member int64_field - * @return Reference to member int64_field - */ - eProsima_user_DllExport int64_t& int64_field(); - - - /*! - * @brief This function sets a value in member uint64_field - * @param _uint64_field New value for member uint64_field - */ - eProsima_user_DllExport void uint64_field( - uint64_t _uint64_field); - - /*! - * @brief This function returns the value of member uint64_field - * @return Value of member uint64_field - */ - eProsima_user_DllExport uint64_t uint64_field() const; - - /*! - * @brief This function returns a reference to member uint64_field - * @return Reference to member uint64_field - */ - eProsima_user_DllExport uint64_t& uint64_field(); - - - /*! - * @brief This function sets a value in member float_field - * @param _float_field New value for member float_field - */ - eProsima_user_DllExport void float_field( - float _float_field); - - /*! - * @brief This function returns the value of member float_field - * @return Value of member float_field - */ - eProsima_user_DllExport float float_field() const; - - /*! - * @brief This function returns a reference to member float_field - * @return Reference to member float_field - */ - eProsima_user_DllExport float& float_field(); - - - /*! - * @brief This function sets a value in member double_field - * @param _double_field New value for member double_field - */ - eProsima_user_DllExport void double_field( - double _double_field); - - /*! - * @brief This function returns the value of member double_field - * @return Value of member double_field - */ - eProsima_user_DllExport double double_field() const; - - /*! - * @brief This function returns a reference to member double_field - * @return Reference to member double_field - */ - eProsima_user_DllExport double& double_field(); - - - /*! - * @brief This function sets a value in member bool_field - * @param _bool_field New value for member bool_field - */ - eProsima_user_DllExport void bool_field( - bool _bool_field); - - /*! - * @brief This function returns the value of member bool_field - * @return Value of member bool_field - */ - eProsima_user_DllExport bool bool_field() const; - - /*! - * @brief This function returns a reference to member bool_field - * @return Reference to member bool_field - */ - eProsima_user_DllExport bool& bool_field(); - - - /*! - * @brief This function copies the value in member string_field - * @param _string_field New value to be copied in member string_field - */ - eProsima_user_DllExport void string_field( - const std::string& _string_field); - - /*! - * @brief This function moves the value in member string_field - * @param _string_field New value to be moved in member string_field - */ - eProsima_user_DllExport void string_field( - std::string&& _string_field); - - /*! - * @brief This function returns a constant reference to member string_field - * @return Constant reference to member string_field - */ - eProsima_user_DllExport const std::string& string_field() const; - - /*! - * @brief This function returns a reference to member string_field - * @return Reference to member string_field - */ - eProsima_user_DllExport std::string& string_field(); - - - /*! - * @brief This function sets a value in member enum_field - * @param _enum_field New value for member enum_field - */ - eProsima_user_DllExport void enum_field( - eprosima::test::Color _enum_field); - - /*! - * @brief This function returns the value of member enum_field - * @return Value of member enum_field - */ - eProsima_user_DllExport eprosima::test::Color enum_field() const; - - /*! - * @brief This function returns a reference to member enum_field - * @return Reference to member enum_field - */ - eProsima_user_DllExport eprosima::test::Color& enum_field(); - - - /*! - * @brief This function sets a value in member enum2_field - * @param _enum2_field New value for member enum2_field - */ - eProsima_user_DllExport void enum2_field( - eprosima::test::Material _enum2_field); - - /*! - * @brief This function returns the value of member enum2_field - * @return Value of member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material enum2_field() const; - - /*! - * @brief This function returns a reference to member enum2_field - * @return Reference to member enum2_field - */ - eProsima_user_DllExport eprosima::test::Material& enum2_field(); - - - /*! - * @brief This function copies the value in member struct_field - * @param _struct_field New value to be copied in member struct_field - */ - eProsima_user_DllExport void struct_field( - const eprosima::test::StructType& _struct_field); - - /*! - * @brief This function moves the value in member struct_field - * @param _struct_field New value to be moved in member struct_field - */ - eProsima_user_DllExport void struct_field( - eprosima::test::StructType&& _struct_field); - - /*! - * @brief This function returns a constant reference to member struct_field - * @return Constant reference to member struct_field - */ - eProsima_user_DllExport const eprosima::test::StructType& struct_field() const; - - /*! - * @brief This function returns a reference to member struct_field - * @return Reference to member struct_field - */ - eProsima_user_DllExport eprosima::test::StructType& struct_field(); - - - /*! - * @brief This function sets a value in member char_opt_field - * @param _char_opt_field New value for member char_opt_field - */ - eProsima_user_DllExport void char_opt_field( - char _char_opt_field); - - /*! - * @brief This function returns the value of member char_opt_field - * @return Value of member char_opt_field - */ - eProsima_user_DllExport char char_opt_field() const; - - /*! - * @brief This function returns a reference to member char_opt_field - * @return Reference to member char_opt_field - */ - eProsima_user_DllExport char& char_opt_field(); - - - /*! - * @brief This function sets a value in member uint8_opt_field - * @param _uint8_opt_field New value for member uint8_opt_field - */ - eProsima_user_DllExport void uint8_opt_field( - uint8_t _uint8_opt_field); - - /*! - * @brief This function returns the value of member uint8_opt_field - * @return Value of member uint8_opt_field - */ - eProsima_user_DllExport uint8_t uint8_opt_field() const; - - /*! - * @brief This function returns a reference to member uint8_opt_field - * @return Reference to member uint8_opt_field - */ - eProsima_user_DllExport uint8_t& uint8_opt_field(); - - - /*! - * @brief This function sets a value in member int16_opt_field - * @param _int16_opt_field New value for member int16_opt_field - */ - eProsima_user_DllExport void int16_opt_field( - int16_t _int16_opt_field); - - /*! - * @brief This function returns the value of member int16_opt_field - * @return Value of member int16_opt_field - */ - eProsima_user_DllExport int16_t int16_opt_field() const; - - /*! - * @brief This function returns a reference to member int16_opt_field - * @return Reference to member int16_opt_field - */ - eProsima_user_DllExport int16_t& int16_opt_field(); - - - /*! - * @brief This function sets a value in member uint16_opt_field - * @param _uint16_opt_field New value for member uint16_opt_field - */ - eProsima_user_DllExport void uint16_opt_field( - uint16_t _uint16_opt_field); - - /*! - * @brief This function returns the value of member uint16_opt_field - * @return Value of member uint16_opt_field - */ - eProsima_user_DllExport uint16_t uint16_opt_field() const; - - /*! - * @brief This function returns a reference to member uint16_opt_field - * @return Reference to member uint16_opt_field - */ - eProsima_user_DllExport uint16_t& uint16_opt_field(); - - - /*! - * @brief This function sets a value in member int32_opt_field - * @param _int32_opt_field New value for member int32_opt_field - */ - eProsima_user_DllExport void int32_opt_field( - int32_t _int32_opt_field); - - /*! - * @brief This function returns the value of member int32_opt_field - * @return Value of member int32_opt_field - */ - eProsima_user_DllExport int32_t int32_opt_field() const; - - /*! - * @brief This function returns a reference to member int32_opt_field - * @return Reference to member int32_opt_field - */ - eProsima_user_DllExport int32_t& int32_opt_field(); - - - /*! - * @brief This function sets a value in member uint32_opt_field - * @param _uint32_opt_field New value for member uint32_opt_field - */ - eProsima_user_DllExport void uint32_opt_field( - uint32_t _uint32_opt_field); - - /*! - * @brief This function returns the value of member uint32_opt_field - * @return Value of member uint32_opt_field - */ - eProsima_user_DllExport uint32_t uint32_opt_field() const; - - /*! - * @brief This function returns a reference to member uint32_opt_field - * @return Reference to member uint32_opt_field - */ - eProsima_user_DllExport uint32_t& uint32_opt_field(); - - - /*! - * @brief This function sets a value in member int64_opt_field - * @param _int64_opt_field New value for member int64_opt_field - */ - eProsima_user_DllExport void int64_opt_field( - int64_t _int64_opt_field); - - /*! - * @brief This function returns the value of member int64_opt_field - * @return Value of member int64_opt_field - */ - eProsima_user_DllExport int64_t int64_opt_field() const; - - /*! - * @brief This function returns a reference to member int64_opt_field - * @return Reference to member int64_opt_field - */ - eProsima_user_DllExport int64_t& int64_opt_field(); - - - /*! - * @brief This function sets a value in member uint64_opt_field - * @param _uint64_opt_field New value for member uint64_opt_field - */ - eProsima_user_DllExport void uint64_opt_field( - uint64_t _uint64_opt_field); - - /*! - * @brief This function returns the value of member uint64_opt_field - * @return Value of member uint64_opt_field - */ - eProsima_user_DllExport uint64_t uint64_opt_field() const; - - /*! - * @brief This function returns a reference to member uint64_opt_field - * @return Reference to member uint64_opt_field - */ - eProsima_user_DllExport uint64_t& uint64_opt_field(); - - - /*! - * @brief This function sets a value in member float_opt_field - * @param _float_opt_field New value for member float_opt_field - */ - eProsima_user_DllExport void float_opt_field( - float _float_opt_field); - - /*! - * @brief This function returns the value of member float_opt_field - * @return Value of member float_opt_field - */ - eProsima_user_DllExport float float_opt_field() const; - - /*! - * @brief This function returns a reference to member float_opt_field - * @return Reference to member float_opt_field - */ - eProsima_user_DllExport float& float_opt_field(); - - - /*! - * @brief This function sets a value in member double_opt_field - * @param _double_opt_field New value for member double_opt_field - */ - eProsima_user_DllExport void double_opt_field( - double _double_opt_field); - - /*! - * @brief This function returns the value of member double_opt_field - * @return Value of member double_opt_field - */ - eProsima_user_DllExport double double_opt_field() const; - - /*! - * @brief This function returns a reference to member double_opt_field - * @return Reference to member double_opt_field - */ - eProsima_user_DllExport double& double_opt_field(); - - - /*! - * @brief This function sets a value in member bool_opt_field - * @param _bool_opt_field New value for member bool_opt_field - */ - eProsima_user_DllExport void bool_opt_field( - bool _bool_opt_field); - - /*! - * @brief This function returns the value of member bool_opt_field - * @return Value of member bool_opt_field - */ - eProsima_user_DllExport bool bool_opt_field() const; - - /*! - * @brief This function returns a reference to member bool_opt_field - * @return Reference to member bool_opt_field - */ - eProsima_user_DllExport bool& bool_opt_field(); - - - /*! - * @brief This function copies the value in member string_opt_field - * @param _string_opt_field New value to be copied in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - const std::string& _string_opt_field); - - /*! - * @brief This function moves the value in member string_opt_field - * @param _string_opt_field New value to be moved in member string_opt_field - */ - eProsima_user_DllExport void string_opt_field( - std::string&& _string_opt_field); - - /*! - * @brief This function returns a constant reference to member string_opt_field - * @return Constant reference to member string_opt_field - */ - eProsima_user_DllExport const std::string& string_opt_field() const; - - /*! - * @brief This function returns a reference to member string_opt_field - * @return Reference to member string_opt_field - */ - eProsima_user_DllExport std::string& string_opt_field(); - - - /*! - * @brief This function sets a value in member enum_opt_field - * @param _enum_opt_field New value for member enum_opt_field - */ - eProsima_user_DllExport void enum_opt_field( - eprosima::test::Color _enum_opt_field); - - /*! - * @brief This function returns the value of member enum_opt_field - * @return Value of member enum_opt_field - */ - eProsima_user_DllExport eprosima::test::Color enum_opt_field() const; - - /*! - * @brief This function returns a reference to member enum_opt_field - * @return Reference to member enum_opt_field - */ - eProsima_user_DllExport eprosima::test::Color& enum_opt_field(); - - - /*! - * @brief This function sets a value in member enum2_opt_field - * @param _enum2_opt_field New value for member enum2_opt_field - */ - eProsima_user_DllExport void enum2_opt_field( - eprosima::test::Material _enum2_opt_field); - - /*! - * @brief This function returns the value of member enum2_opt_field - * @return Value of member enum2_opt_field - */ - eProsima_user_DllExport eprosima::test::Material enum2_opt_field() const; - - /*! - * @brief This function returns a reference to member enum2_opt_field - * @return Reference to member enum2_opt_field - */ - eProsima_user_DllExport eprosima::test::Material& enum2_opt_field(); - - - /*! - * @brief This function copies the value in member struct_opt_field - * @param _struct_opt_field New value to be copied in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - const eprosima::test::StructType& _struct_opt_field); - - /*! - * @brief This function moves the value in member struct_opt_field - * @param _struct_opt_field New value to be moved in member struct_opt_field - */ - eProsima_user_DllExport void struct_opt_field( - eprosima::test::StructType&& _struct_opt_field); - - /*! - * @brief This function returns a constant reference to member struct_opt_field - * @return Constant reference to member struct_opt_field - */ - eProsima_user_DllExport const eprosima::test::StructType& struct_opt_field() const; - - /*! - * @brief This function returns a reference to member struct_opt_field - * @return Reference to member struct_opt_field - */ - eProsima_user_DllExport eprosima::test::StructType& struct_opt_field(); - - - /*! - * @brief This function copies the value in member array_char_field - * @param _array_char_field New value to be copied in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - const std::array& _array_char_field); - - /*! - * @brief This function moves the value in member array_char_field - * @param _array_char_field New value to be moved in member array_char_field - */ - eProsima_user_DllExport void array_char_field( - std::array&& _array_char_field); - - /*! - * @brief This function returns a constant reference to member array_char_field - * @return Constant reference to member array_char_field - */ - eProsima_user_DllExport const std::array& array_char_field() const; - - /*! - * @brief This function returns a reference to member array_char_field - * @return Reference to member array_char_field - */ - eProsima_user_DllExport std::array& array_char_field(); - - - /*! - * @brief This function copies the value in member array_uint8_field - * @param _array_uint8_field New value to be copied in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - const std::array& _array_uint8_field); - - /*! - * @brief This function moves the value in member array_uint8_field - * @param _array_uint8_field New value to be moved in member array_uint8_field - */ - eProsima_user_DllExport void array_uint8_field( - std::array&& _array_uint8_field); - - /*! - * @brief This function returns a constant reference to member array_uint8_field - * @return Constant reference to member array_uint8_field - */ - eProsima_user_DllExport const std::array& array_uint8_field() const; - - /*! - * @brief This function returns a reference to member array_uint8_field - * @return Reference to member array_uint8_field - */ - eProsima_user_DllExport std::array& array_uint8_field(); - - - /*! - * @brief This function copies the value in member array_int16_field - * @param _array_int16_field New value to be copied in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - const std::array& _array_int16_field); - - /*! - * @brief This function moves the value in member array_int16_field - * @param _array_int16_field New value to be moved in member array_int16_field - */ - eProsima_user_DllExport void array_int16_field( - std::array&& _array_int16_field); - - /*! - * @brief This function returns a constant reference to member array_int16_field - * @return Constant reference to member array_int16_field - */ - eProsima_user_DllExport const std::array& array_int16_field() const; - - /*! - * @brief This function returns a reference to member array_int16_field - * @return Reference to member array_int16_field - */ - eProsima_user_DllExport std::array& array_int16_field(); - - - /*! - * @brief This function copies the value in member array_uint16_field - * @param _array_uint16_field New value to be copied in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - const std::array& _array_uint16_field); - - /*! - * @brief This function moves the value in member array_uint16_field - * @param _array_uint16_field New value to be moved in member array_uint16_field - */ - eProsima_user_DllExport void array_uint16_field( - std::array&& _array_uint16_field); - - /*! - * @brief This function returns a constant reference to member array_uint16_field - * @return Constant reference to member array_uint16_field - */ - eProsima_user_DllExport const std::array& array_uint16_field() const; - - /*! - * @brief This function returns a reference to member array_uint16_field - * @return Reference to member array_uint16_field - */ - eProsima_user_DllExport std::array& array_uint16_field(); - - - /*! - * @brief This function copies the value in member array_int32_field - * @param _array_int32_field New value to be copied in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - const std::array& _array_int32_field); - - /*! - * @brief This function moves the value in member array_int32_field - * @param _array_int32_field New value to be moved in member array_int32_field - */ - eProsima_user_DllExport void array_int32_field( - std::array&& _array_int32_field); - - /*! - * @brief This function returns a constant reference to member array_int32_field - * @return Constant reference to member array_int32_field - */ - eProsima_user_DllExport const std::array& array_int32_field() const; - - /*! - * @brief This function returns a reference to member array_int32_field - * @return Reference to member array_int32_field - */ - eProsima_user_DllExport std::array& array_int32_field(); - - - /*! - * @brief This function copies the value in member array_uint32_field - * @param _array_uint32_field New value to be copied in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - const std::array& _array_uint32_field); - - /*! - * @brief This function moves the value in member array_uint32_field - * @param _array_uint32_field New value to be moved in member array_uint32_field - */ - eProsima_user_DllExport void array_uint32_field( - std::array&& _array_uint32_field); - - /*! - * @brief This function returns a constant reference to member array_uint32_field - * @return Constant reference to member array_uint32_field - */ - eProsima_user_DllExport const std::array& array_uint32_field() const; - - /*! - * @brief This function returns a reference to member array_uint32_field - * @return Reference to member array_uint32_field - */ - eProsima_user_DllExport std::array& array_uint32_field(); - - - /*! - * @brief This function copies the value in member array_int64_field - * @param _array_int64_field New value to be copied in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - const std::array& _array_int64_field); - - /*! - * @brief This function moves the value in member array_int64_field - * @param _array_int64_field New value to be moved in member array_int64_field - */ - eProsima_user_DllExport void array_int64_field( - std::array&& _array_int64_field); - - /*! - * @brief This function returns a constant reference to member array_int64_field - * @return Constant reference to member array_int64_field - */ - eProsima_user_DllExport const std::array& array_int64_field() const; - - /*! - * @brief This function returns a reference to member array_int64_field - * @return Reference to member array_int64_field - */ - eProsima_user_DllExport std::array& array_int64_field(); - - - /*! - * @brief This function copies the value in member array_uint64_field - * @param _array_uint64_field New value to be copied in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - const std::array& _array_uint64_field); - - /*! - * @brief This function moves the value in member array_uint64_field - * @param _array_uint64_field New value to be moved in member array_uint64_field - */ - eProsima_user_DllExport void array_uint64_field( - std::array&& _array_uint64_field); - - /*! - * @brief This function returns a constant reference to member array_uint64_field - * @return Constant reference to member array_uint64_field - */ - eProsima_user_DllExport const std::array& array_uint64_field() const; - - /*! - * @brief This function returns a reference to member array_uint64_field - * @return Reference to member array_uint64_field - */ - eProsima_user_DllExport std::array& array_uint64_field(); - - - /*! - * @brief This function copies the value in member array_float_field - * @param _array_float_field New value to be copied in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - const std::array& _array_float_field); - - /*! - * @brief This function moves the value in member array_float_field - * @param _array_float_field New value to be moved in member array_float_field - */ - eProsima_user_DllExport void array_float_field( - std::array&& _array_float_field); - - /*! - * @brief This function returns a constant reference to member array_float_field - * @return Constant reference to member array_float_field - */ - eProsima_user_DllExport const std::array& array_float_field() const; - - /*! - * @brief This function returns a reference to member array_float_field - * @return Reference to member array_float_field - */ - eProsima_user_DllExport std::array& array_float_field(); - - - /*! - * @brief This function copies the value in member array_double_field - * @param _array_double_field New value to be copied in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - const std::array& _array_double_field); - - /*! - * @brief This function moves the value in member array_double_field - * @param _array_double_field New value to be moved in member array_double_field - */ - eProsima_user_DllExport void array_double_field( - std::array&& _array_double_field); - - /*! - * @brief This function returns a constant reference to member array_double_field - * @return Constant reference to member array_double_field - */ - eProsima_user_DllExport const std::array& array_double_field() const; - - /*! - * @brief This function returns a reference to member array_double_field - * @return Reference to member array_double_field - */ - eProsima_user_DllExport std::array& array_double_field(); - - - /*! - * @brief This function copies the value in member array_bool_field - * @param _array_bool_field New value to be copied in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - const std::array& _array_bool_field); - - /*! - * @brief This function moves the value in member array_bool_field - * @param _array_bool_field New value to be moved in member array_bool_field - */ - eProsima_user_DllExport void array_bool_field( - std::array&& _array_bool_field); - - /*! - * @brief This function returns a constant reference to member array_bool_field - * @return Constant reference to member array_bool_field - */ - eProsima_user_DllExport const std::array& array_bool_field() const; - - /*! - * @brief This function returns a reference to member array_bool_field - * @return Reference to member array_bool_field - */ - eProsima_user_DllExport std::array& array_bool_field(); - - - /*! - * @brief This function copies the value in member array_enum_field - * @param _array_enum_field New value to be copied in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - const std::array& _array_enum_field); - - /*! - * @brief This function moves the value in member array_enum_field - * @param _array_enum_field New value to be moved in member array_enum_field - */ - eProsima_user_DllExport void array_enum_field( - std::array&& _array_enum_field); - - /*! - * @brief This function returns a constant reference to member array_enum_field - * @return Constant reference to member array_enum_field - */ - eProsima_user_DllExport const std::array& array_enum_field() const; - - /*! - * @brief This function returns a reference to member array_enum_field - * @return Reference to member array_enum_field - */ - eProsima_user_DllExport std::array& array_enum_field(); - - - /*! - * @brief This function copies the value in member array_enum2_field - * @param _array_enum2_field New value to be copied in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - const std::array& _array_enum2_field); - - /*! - * @brief This function moves the value in member array_enum2_field - * @param _array_enum2_field New value to be moved in member array_enum2_field - */ - eProsima_user_DllExport void array_enum2_field( - std::array&& _array_enum2_field); - - /*! - * @brief This function returns a constant reference to member array_enum2_field - * @return Constant reference to member array_enum2_field - */ - eProsima_user_DllExport const std::array& array_enum2_field() const; - - /*! - * @brief This function returns a reference to member array_enum2_field - * @return Reference to member array_enum2_field - */ - eProsima_user_DllExport std::array& array_enum2_field(); - - - /*! - * @brief This function copies the value in member array_struct_field - * @param _array_struct_field New value to be copied in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - const std::array& _array_struct_field); - - /*! - * @brief This function moves the value in member array_struct_field - * @param _array_struct_field New value to be moved in member array_struct_field - */ - eProsima_user_DllExport void array_struct_field( - std::array&& _array_struct_field); - - /*! - * @brief This function returns a constant reference to member array_struct_field - * @return Constant reference to member array_struct_field - */ - eProsima_user_DllExport const std::array& array_struct_field() const; - - /*! - * @brief This function returns a reference to member array_struct_field - * @return Reference to member array_struct_field - */ - eProsima_user_DllExport std::array& array_struct_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be copied in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - const std::vector& _bounded_sequence_char_field); - - /*! - * @brief This function moves the value in member bounded_sequence_char_field - * @param _bounded_sequence_char_field New value to be moved in member bounded_sequence_char_field - */ - eProsima_user_DllExport void bounded_sequence_char_field( - std::vector&& _bounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_char_field - * @return Constant reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_char_field - * @return Reference to member bounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be copied in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - const std::vector& _bounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint8_field - * @param _bounded_sequence_uint8_field New value to be moved in member bounded_sequence_uint8_field - */ - eProsima_user_DllExport void bounded_sequence_uint8_field( - std::vector&& _bounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint8_field - * @return Constant reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint8_field - * @return Reference to member bounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be copied in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - const std::vector& _bounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int16_field - * @param _bounded_sequence_int16_field New value to be moved in member bounded_sequence_int16_field - */ - eProsima_user_DllExport void bounded_sequence_int16_field( - std::vector&& _bounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int16_field - * @return Constant reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int16_field - * @return Reference to member bounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be copied in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - const std::vector& _bounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint16_field - * @param _bounded_sequence_uint16_field New value to be moved in member bounded_sequence_uint16_field - */ - eProsima_user_DllExport void bounded_sequence_uint16_field( - std::vector&& _bounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint16_field - * @return Constant reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint16_field - * @return Reference to member bounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be copied in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - const std::vector& _bounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int32_field - * @param _bounded_sequence_int32_field New value to be moved in member bounded_sequence_int32_field - */ - eProsima_user_DllExport void bounded_sequence_int32_field( - std::vector&& _bounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int32_field - * @return Constant reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int32_field - * @return Reference to member bounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be copied in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - const std::vector& _bounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint32_field - * @param _bounded_sequence_uint32_field New value to be moved in member bounded_sequence_uint32_field - */ - eProsima_user_DllExport void bounded_sequence_uint32_field( - std::vector&& _bounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint32_field - * @return Constant reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint32_field - * @return Reference to member bounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be copied in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - const std::vector& _bounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_int64_field - * @param _bounded_sequence_int64_field New value to be moved in member bounded_sequence_int64_field - */ - eProsima_user_DllExport void bounded_sequence_int64_field( - std::vector&& _bounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_int64_field - * @return Constant reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_int64_field - * @return Reference to member bounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be copied in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - const std::vector& _bounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member bounded_sequence_uint64_field - * @param _bounded_sequence_uint64_field New value to be moved in member bounded_sequence_uint64_field - */ - eProsima_user_DllExport void bounded_sequence_uint64_field( - std::vector&& _bounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_uint64_field - * @return Constant reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_uint64_field - * @return Reference to member bounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be copied in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - const std::vector& _bounded_sequence_float_field); - - /*! - * @brief This function moves the value in member bounded_sequence_float_field - * @param _bounded_sequence_float_field New value to be moved in member bounded_sequence_float_field - */ - eProsima_user_DllExport void bounded_sequence_float_field( - std::vector&& _bounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_float_field - * @return Constant reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_float_field - * @return Reference to member bounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be copied in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - const std::vector& _bounded_sequence_double_field); - - /*! - * @brief This function moves the value in member bounded_sequence_double_field - * @param _bounded_sequence_double_field New value to be moved in member bounded_sequence_double_field - */ - eProsima_user_DllExport void bounded_sequence_double_field( - std::vector&& _bounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_double_field - * @return Constant reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_double_field - * @return Reference to member bounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be copied in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - const std::vector& _bounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member bounded_sequence_bool_field - * @param _bounded_sequence_bool_field New value to be moved in member bounded_sequence_bool_field - */ - eProsima_user_DllExport void bounded_sequence_bool_field( - std::vector&& _bounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_bool_field - * @return Constant reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_bool_field - * @return Reference to member bounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be copied in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - const std::vector& _bounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum_field - * @param _bounded_sequence_enum_field New value to be moved in member bounded_sequence_enum_field - */ - eProsima_user_DllExport void bounded_sequence_enum_field( - std::vector&& _bounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum_field - * @return Constant reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum_field - * @return Reference to member bounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be copied in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - const std::vector& _bounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member bounded_sequence_enum2_field - * @param _bounded_sequence_enum2_field New value to be moved in member bounded_sequence_enum2_field - */ - eProsima_user_DllExport void bounded_sequence_enum2_field( - std::vector&& _bounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_enum2_field - * @return Constant reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_enum2_field - * @return Reference to member bounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be copied in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - const std::vector& _bounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member bounded_sequence_struct_field - * @param _bounded_sequence_struct_field New value to be moved in member bounded_sequence_struct_field - */ - eProsima_user_DllExport void bounded_sequence_struct_field( - std::vector&& _bounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member bounded_sequence_struct_field - * @return Constant reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& bounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member bounded_sequence_struct_field - * @return Reference to member bounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& bounded_sequence_struct_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be copied in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - const std::vector& _unbounded_sequence_char_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_char_field - * @param _unbounded_sequence_char_field New value to be moved in member unbounded_sequence_char_field - */ - eProsima_user_DllExport void unbounded_sequence_char_field( - std::vector&& _unbounded_sequence_char_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_char_field - * @return Constant reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_char_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_char_field - * @return Reference to member unbounded_sequence_char_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_char_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be copied in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - const std::vector& _unbounded_sequence_uint8_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint8_field - * @param _unbounded_sequence_uint8_field New value to be moved in member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport void unbounded_sequence_uint8_field( - std::vector&& _unbounded_sequence_uint8_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint8_field - * @return Constant reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint8_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint8_field - * @return Reference to member unbounded_sequence_uint8_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint8_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be copied in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - const std::vector& _unbounded_sequence_int16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int16_field - * @param _unbounded_sequence_int16_field New value to be moved in member unbounded_sequence_int16_field - */ - eProsima_user_DllExport void unbounded_sequence_int16_field( - std::vector&& _unbounded_sequence_int16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int16_field - * @return Constant reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int16_field - * @return Reference to member unbounded_sequence_int16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be copied in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - const std::vector& _unbounded_sequence_uint16_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint16_field - * @param _unbounded_sequence_uint16_field New value to be moved in member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport void unbounded_sequence_uint16_field( - std::vector&& _unbounded_sequence_uint16_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint16_field - * @return Constant reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint16_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint16_field - * @return Reference to member unbounded_sequence_uint16_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint16_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be copied in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - const std::vector& _unbounded_sequence_int32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int32_field - * @param _unbounded_sequence_int32_field New value to be moved in member unbounded_sequence_int32_field - */ - eProsima_user_DllExport void unbounded_sequence_int32_field( - std::vector&& _unbounded_sequence_int32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int32_field - * @return Constant reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int32_field - * @return Reference to member unbounded_sequence_int32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be copied in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - const std::vector& _unbounded_sequence_uint32_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint32_field - * @param _unbounded_sequence_uint32_field New value to be moved in member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport void unbounded_sequence_uint32_field( - std::vector&& _unbounded_sequence_uint32_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint32_field - * @return Constant reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint32_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint32_field - * @return Reference to member unbounded_sequence_uint32_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint32_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be copied in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - const std::vector& _unbounded_sequence_int64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_int64_field - * @param _unbounded_sequence_int64_field New value to be moved in member unbounded_sequence_int64_field - */ - eProsima_user_DllExport void unbounded_sequence_int64_field( - std::vector&& _unbounded_sequence_int64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_int64_field - * @return Constant reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_int64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_int64_field - * @return Reference to member unbounded_sequence_int64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_int64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be copied in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - const std::vector& _unbounded_sequence_uint64_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_uint64_field - * @param _unbounded_sequence_uint64_field New value to be moved in member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport void unbounded_sequence_uint64_field( - std::vector&& _unbounded_sequence_uint64_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_uint64_field - * @return Constant reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_uint64_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_uint64_field - * @return Reference to member unbounded_sequence_uint64_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_uint64_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be copied in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - const std::vector& _unbounded_sequence_float_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_float_field - * @param _unbounded_sequence_float_field New value to be moved in member unbounded_sequence_float_field - */ - eProsima_user_DllExport void unbounded_sequence_float_field( - std::vector&& _unbounded_sequence_float_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_float_field - * @return Constant reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_float_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_float_field - * @return Reference to member unbounded_sequence_float_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_float_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be copied in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - const std::vector& _unbounded_sequence_double_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_double_field - * @param _unbounded_sequence_double_field New value to be moved in member unbounded_sequence_double_field - */ - eProsima_user_DllExport void unbounded_sequence_double_field( - std::vector&& _unbounded_sequence_double_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_double_field - * @return Constant reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_double_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_double_field - * @return Reference to member unbounded_sequence_double_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_double_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be copied in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - const std::vector& _unbounded_sequence_bool_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_bool_field - * @param _unbounded_sequence_bool_field New value to be moved in member unbounded_sequence_bool_field - */ - eProsima_user_DllExport void unbounded_sequence_bool_field( - std::vector&& _unbounded_sequence_bool_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_bool_field - * @return Constant reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_bool_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_bool_field - * @return Reference to member unbounded_sequence_bool_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_bool_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be copied in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - const std::vector& _unbounded_sequence_enum_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum_field - * @param _unbounded_sequence_enum_field New value to be moved in member unbounded_sequence_enum_field - */ - eProsima_user_DllExport void unbounded_sequence_enum_field( - std::vector&& _unbounded_sequence_enum_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum_field - * @return Constant reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum_field - * @return Reference to member unbounded_sequence_enum_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be copied in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - const std::vector& _unbounded_sequence_enum2_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_enum2_field - * @param _unbounded_sequence_enum2_field New value to be moved in member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport void unbounded_sequence_enum2_field( - std::vector&& _unbounded_sequence_enum2_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_enum2_field - * @return Constant reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_enum2_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_enum2_field - * @return Reference to member unbounded_sequence_enum2_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_enum2_field(); - - - /*! - * @brief This function copies the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be copied in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - const std::vector& _unbounded_sequence_struct_field); - - /*! - * @brief This function moves the value in member unbounded_sequence_struct_field - * @param _unbounded_sequence_struct_field New value to be moved in member unbounded_sequence_struct_field - */ - eProsima_user_DllExport void unbounded_sequence_struct_field( - std::vector&& _unbounded_sequence_struct_field); - - /*! - * @brief This function returns a constant reference to member unbounded_sequence_struct_field - * @return Constant reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport const std::vector& unbounded_sequence_struct_field() const; - - /*! - * @brief This function returns a reference to member unbounded_sequence_struct_field - * @return Reference to member unbounded_sequence_struct_field - */ - eProsima_user_DllExport std::vector& unbounded_sequence_struct_field(); - - - /*! - * @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 eprosima::test::KeyedCompleteTestType& 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: - - int32_t m_id; - char m_char_field; - uint8_t m_uint8_field; - int16_t m_int16_field; - uint16_t m_uint16_field; - int32_t m_int32_field; - uint32_t m_uint32_field; - int64_t m_int64_field; - uint64_t m_uint64_field; - float m_float_field; - double m_double_field; - bool m_bool_field; - std::string m_string_field; - eprosima::test::Color m_enum_field; - eprosima::test::Material m_enum2_field; - eprosima::test::StructType m_struct_field; - char m_char_opt_field; - uint8_t m_uint8_opt_field; - int16_t m_int16_opt_field; - uint16_t m_uint16_opt_field; - int32_t m_int32_opt_field; - uint32_t m_uint32_opt_field; - int64_t m_int64_opt_field; - uint64_t m_uint64_opt_field; - float m_float_opt_field; - double m_double_opt_field; - bool m_bool_opt_field; - std::string m_string_opt_field; - eprosima::test::Color m_enum_opt_field; - eprosima::test::Material m_enum2_opt_field; - eprosima::test::StructType m_struct_opt_field; - std::array m_array_char_field; - std::array m_array_uint8_field; - std::array m_array_int16_field; - std::array m_array_uint16_field; - std::array m_array_int32_field; - std::array m_array_uint32_field; - std::array m_array_int64_field; - std::array m_array_uint64_field; - std::array m_array_float_field; - std::array m_array_double_field; - std::array m_array_bool_field; - std::array m_array_enum_field; - std::array m_array_enum2_field; - std::array m_array_struct_field; - std::vector m_bounded_sequence_char_field; - std::vector m_bounded_sequence_uint8_field; - std::vector m_bounded_sequence_int16_field; - std::vector m_bounded_sequence_uint16_field; - std::vector m_bounded_sequence_int32_field; - std::vector m_bounded_sequence_uint32_field; - std::vector m_bounded_sequence_int64_field; - std::vector m_bounded_sequence_uint64_field; - std::vector m_bounded_sequence_float_field; - std::vector m_bounded_sequence_double_field; - std::vector m_bounded_sequence_bool_field; - std::vector m_bounded_sequence_enum_field; - std::vector m_bounded_sequence_enum2_field; - std::vector m_bounded_sequence_struct_field; - std::vector m_unbounded_sequence_char_field; - std::vector m_unbounded_sequence_uint8_field; - std::vector m_unbounded_sequence_int16_field; - std::vector m_unbounded_sequence_uint16_field; - std::vector m_unbounded_sequence_int32_field; - std::vector m_unbounded_sequence_uint32_field; - std::vector m_unbounded_sequence_int64_field; - std::vector m_unbounded_sequence_uint64_field; - std::vector m_unbounded_sequence_float_field; - std::vector m_unbounded_sequence_double_field; - std::vector m_unbounded_sequence_bool_field; - std::vector m_unbounded_sequence_enum_field; - std::vector m_unbounded_sequence_enum2_field; - std::vector m_unbounded_sequence_struct_field; - - }; - - } // namespace test -} // namespace eprosima - -#endif // _FAST_DDS_GENERATED_EPROSIMA_TEST_TEST_MODULES_H_ - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python_examples/HelloWorldExample/CMakeLists.txt b/fastdds_python_examples/HelloWorldExample/CMakeLists.txt index 183e01f1..25a2df56 100644 --- a/fastdds_python_examples/HelloWorldExample/CMakeLists.txt +++ b/fastdds_python_examples/HelloWorldExample/CMakeLists.txt @@ -23,14 +23,13 @@ message(STATUS "Configuring python wrapper for types in HelloWorld...") project(HelloWorld) find_package(fastcdr REQUIRED) -find_package(fastdds REQUIRED) +find_package(fastdds 3 REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE ON) #Create library for C++ types add_library(${PROJECT_NAME} SHARED - HelloWorld.cxx - HelloWorldv1.cxx + HelloWorldTypeObjectSupport.cxx HelloWorldPubSubTypes.cxx ) if(WIN32) diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorld.cxx b/fastdds_python_examples/HelloWorldExample/HelloWorld.cxx deleted file mode 100644 index 4b415d67..00000000 --- a/fastdds_python_examples/HelloWorldExample/HelloWorld.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 HelloWorld.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 "HelloWorld.h" - -#if FASTCDR_VERSION_MAJOR > 1 - -#include - - -#include -using namespace eprosima::fastcdr::exception; - -#include - - - - -HelloWorld::HelloWorld() -{ -} - -HelloWorld::~HelloWorld() -{ -} - -HelloWorld::HelloWorld( - const HelloWorld& x) -{ - m_index = x.m_index; - m_message = x.m_message; -} - -HelloWorld::HelloWorld( - HelloWorld&& x) noexcept -{ - m_index = x.m_index; - m_message = std::move(x.m_message); -} - -HelloWorld& HelloWorld::operator =( - const HelloWorld& x) -{ - - m_index = x.m_index; - m_message = x.m_message; - return *this; -} - -HelloWorld& HelloWorld::operator =( - HelloWorld&& x) noexcept -{ - - m_index = x.m_index; - m_message = std::move(x.m_message); - return *this; -} - -bool HelloWorld::operator ==( - const HelloWorld& x) const -{ - return (m_index == x.m_index && - m_message == x.m_message); -} - -bool HelloWorld::operator !=( - const HelloWorld& x) const -{ - return !(*this == x); -} - -/*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ -void HelloWorld::index( - uint32_t _index) -{ - m_index = _index; -} - -/*! - * @brief This function returns the value of member index - * @return Value of member index - */ -uint32_t HelloWorld::index() const -{ - return m_index; -} - -/*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ -uint32_t& HelloWorld::index() -{ - return m_index; -} - - -/*! - * @brief This function copies the value in member message - * @param _message New value to be copied in member message - */ -void HelloWorld::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 HelloWorld::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& HelloWorld::message() const -{ - return m_message; -} - -/*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ -std::string& HelloWorld::message() -{ - return m_message; -} - - -// Include auxiliary functions like for serializing/deserializing. -#include "HelloWorldCdrAux.ipp" - -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorld.h b/fastdds_python_examples/HelloWorldExample/HelloWorld.hpp similarity index 69% rename from fastdds_python_examples/HelloWorldExample/HelloWorld.h rename to fastdds_python_examples/HelloWorldExample/HelloWorld.hpp index 5cd0ddba..971fea8d 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorld.h +++ b/fastdds_python_examples/HelloWorldExample/HelloWorld.hpp @@ -13,32 +13,19 @@ // limitations under the License. /*! - * @file HelloWorld.h + * @file HelloWorld.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 "HelloWorldv1.h" +#ifndef _FAST_DDS_GENERATED_HELLOWORLD_HPP_ +#define _FAST_DDS_GENERATED_HELLOWORLD_HPP_ -#if FASTCDR_VERSION_MAJOR > 1 - -#ifndef _FAST_DDS_GENERATED_HELLOWORLD_H_ -#define _FAST_DDS_GENERATED_HELLOWORLD_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 HELLOWORLD_DllAPI #endif // _WIN32 -namespace eprosima { -namespace fastcdr { -class Cdr; -class CdrSizeCalculator; -} // namespace fastcdr -} // namespace eprosima - - - - - /*! * @brief This class represents the structure HelloWorld defined by the user in the IDL file. * @ingroup HelloWorld @@ -86,73 +62,117 @@ class HelloWorld /*! * @brief Default constructor. */ - eProsima_user_DllExport HelloWorld(); + eProsima_user_DllExport HelloWorld() + { + } /*! * @brief Default destructor. */ - eProsima_user_DllExport ~HelloWorld(); + eProsima_user_DllExport ~HelloWorld() + { + } /*! * @brief Copy constructor. * @param x Reference to the object HelloWorld that will be copied. */ eProsima_user_DllExport HelloWorld( - const HelloWorld& x); + const HelloWorld& x) + { + m_index = x.m_index; + + m_message = x.m_message; + + } /*! * @brief Move constructor. * @param x Reference to the object HelloWorld that will be copied. */ eProsima_user_DllExport HelloWorld( - HelloWorld&& x) noexcept; + HelloWorld&& x) noexcept + { + m_index = x.m_index; + m_message = std::move(x.m_message); + } /*! * @brief Copy assignment. * @param x Reference to the object HelloWorld that will be copied. */ eProsima_user_DllExport HelloWorld& operator =( - const HelloWorld& x); + const HelloWorld& x) + { + + m_index = x.m_index; + + m_message = x.m_message; + + return *this; + } /*! * @brief Move assignment. * @param x Reference to the object HelloWorld that will be copied. */ eProsima_user_DllExport HelloWorld& operator =( - HelloWorld&& x) noexcept; + HelloWorld&& x) noexcept + { + + m_index = x.m_index; + m_message = std::move(x.m_message); + return *this; + } /*! * @brief Comparison operator. * @param x HelloWorld object to compare. */ eProsima_user_DllExport bool operator ==( - const HelloWorld& x) const; + const HelloWorld& x) const + { + return (m_index == x.m_index && + m_message == x.m_message); + } /*! * @brief Comparison operator. * @param x HelloWorld object to compare. */ eProsima_user_DllExport bool operator !=( - const HelloWorld& x) const; + const HelloWorld& 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( - uint32_t _index); + uint32_t _index) + { + m_index = _index; + } /*! * @brief This function returns the value of member index * @return Value of member index */ - eProsima_user_DllExport uint32_t index() const; + eProsima_user_DllExport uint32_t index() const + { + return m_index; + } /*! * @brief This function returns a reference to member index * @return Reference to member index */ - eProsima_user_DllExport uint32_t& index(); + eProsima_user_DllExport uint32_t& index() + { + return m_index; + } /*! @@ -160,26 +180,40 @@ class HelloWorld * @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 HelloWorld }; -#endif // _FAST_DDS_GENERATED_HELLOWORLD_H_ - +#endif // _FAST_DDS_GENERATED_HELLOWORLD_HPP_ -#endif // FASTCDR_VERSION_MAJOR > 1 diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorld.i b/fastdds_python_examples/HelloWorldExample/HelloWorld.i index 34c71dd7..662991c7 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorld.i +++ b/fastdds_python_examples/HelloWorldExample/HelloWorld.i @@ -40,7 +40,7 @@ %{ -#include "HelloWorld.h" +#include "HelloWorld.hpp" #include %} @@ -65,8 +65,6 @@ namespace swig { } %enddef - - //////////////////////////////////////////////////////// // Binding for class HelloWorld //////////////////////////////////////////////////////// @@ -116,8 +114,7 @@ namespace swig { // Include the class interfaces -%include "HelloWorld.h" -%include "HelloWorldv1.h" +%include "HelloWorld.hpp" // Include the corresponding TopicDataType %include "HelloWorldPubSubTypes.i" diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.hpp b/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.hpp index 9f346d30..6feb8a9d 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.hpp +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.hpp @@ -22,7 +22,7 @@ #ifndef _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_ #define _FAST_DDS_GENERATED_HELLOWORLDCDRAUX_HPP_ -#include "HelloWorld.h" +#include "HelloWorld.hpp" constexpr uint32_t HelloWorld_max_cdr_typesize {268UL}; constexpr uint32_t HelloWorld_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 HelloWorld& data); diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.ipp b/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.ipp index 42e91f3c..97df3fe9 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.ipp +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldCdrAux.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/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.cxx b/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.cxx index 85cb4778..db018e69 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.cxx +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.cxx @@ -19,18 +19,18 @@ * This file was generated by the tool fastddsgen. */ +#include "HelloWorldPubSubTypes.h" +#include #include -#include "HelloWorldPubSubTypes.h" #include "HelloWorldCdrAux.hpp" +#include "HelloWorldTypeObjectSupport.hpp" using SerializedPayload_t = eprosima::fastrtps::rtps::SerializedPayload_t; using InstanceHandle_t = eprosima::fastrtps::rtps::InstanceHandle_t; using DataRepresentationId_t = eprosima::fastdds::dds::DataRepresentationId_t; - - HelloWorldPubSubType::HelloWorldPubSubType() { setName("HelloWorld"); @@ -219,3 +219,11 @@ bool HelloWorldPubSubType::getKey( return true; } +void HelloWorldPubSubType::register_type_object_representation() const +{ + register_HelloWorld_type_objects(); +} + + +// Include auxiliary functions like for serializing/deserializing. +#include "HelloWorldCdrAux.ipp" diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.h b/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.h index 545c68b1..a9b4ac11 100644 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.h +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldPubSubTypes.h @@ -29,7 +29,7 @@ #include #include -#include "HelloWorld.h" +#include "HelloWorld.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 HelloWorld defined by the user in the IDL file. * @ingroup HelloWorld @@ -90,6 +88,9 @@ class HelloWorldPubSubType : public eprosima::fastdds::dds::TopicDataType 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/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.cxx b/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.cxx new file mode 100644 index 00000000..bfae9569 --- /dev/null +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.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 HelloWorldTypeObjectSupport.cxx + * Source file containing the implementation to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#include "HelloWorldTypeObjectSupport.hpp" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "HelloWorld.hpp" + + +using namespace eprosima::fastdds::dds::xtypes; + +void register_HelloWorld_type_objects() +{ + static std::once_flag once_flag; + std::call_once(once_flag, []() + { + register_HelloWorld_type_identifier(); + + }); +} + +void register_HelloWorld_type_identifier() +{ + { + StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, + false, false); + ReturnCode_t return_code_HelloWorld; + TypeIdentifierPair type_ids_HelloWorld; + QualifiedTypeName type_name_HelloWorld = "HelloWorld"; + eprosima::fastcdr::optional type_ann_builtin_HelloWorld; + eprosima::fastcdr::optional ann_custom_HelloWorld; + CompleteTypeDetail detail_HelloWorld = TypeObjectUtils::build_complete_type_detail(type_ann_builtin_HelloWorld, ann_custom_HelloWorld, type_name_HelloWorld.to_string()); + CompleteStructHeader header_HelloWorld; + header_HelloWorld = TypeObjectUtils::build_complete_struct_header(TypeIdentifier(), detail_HelloWorld); + CompleteStructMemberSeq member_seq_HelloWorld; + { + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "_uint32_t", type_ids_HelloWorld); + + if (return_code_HelloWorld != 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_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_index = TypeObjectUtils::build_common_struct_member(member_id_index, member_flags_index, type_ids_HelloWorld.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure index member TypeIdentifier inconsistent."); + return; + } + MemberName name_index = "index"; + eprosima::fastcdr::optional member_ann_builtin_index; + ann_custom_HelloWorld.reset(); + CompleteMemberDetail detail_index = TypeObjectUtils::build_complete_member_detail(name_index, member_ann_builtin_index, ann_custom_HelloWorld); + CompleteStructMember member_index = TypeObjectUtils::build_complete_struct_member(common_index, detail_index); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_index); + } + { + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_HelloWorld); + + if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + { + 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_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "anonymous_string_unbounded", type_ids_HelloWorld); + if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "anonymous_string_unbounded: Given String TypeIdentifier unknown to TypeObjectRegistry."); + 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_HelloWorld.type_identifier1()._d() || TK_NONE == type_ids_HelloWorld.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier1()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier1()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier1().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier1()); + } + else if (EK_COMPLETE == type_ids_HelloWorld.type_identifier2()._d() || + (TI_PLAIN_SEQUENCE_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_sdefn().header().equiv_kind()) || + (TI_PLAIN_SEQUENCE_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().seq_ldefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_sdefn().header().equiv_kind()) || + (TI_PLAIN_ARRAY_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().array_ldefn().header().equiv_kind()) || + (TI_PLAIN_MAP_SMALL == type_ids_HelloWorld.type_identifier2()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_sdefn().key_identifier()->_d())) || + (TI_PLAIN_MAP_LARGE == type_ids_HelloWorld.type_identifier2()._d() && + (EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().header().equiv_kind() || + EK_COMPLETE == type_ids_HelloWorld.type_identifier2().map_ldefn().key_identifier()->_d()))) + { + common_message = TypeObjectUtils::build_common_struct_member(member_id_message, member_flags_message, type_ids_HelloWorld.type_identifier2()); + } + else + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "Structure message member TypeIdentifier inconsistent."); + return; + } + MemberName name_message = "message"; + eprosima::fastcdr::optional member_ann_builtin_message; + ann_custom_HelloWorld.reset(); + CompleteMemberDetail detail_message = TypeObjectUtils::build_complete_member_detail(name_message, member_ann_builtin_message, ann_custom_HelloWorld); + CompleteStructMember member_message = TypeObjectUtils::build_complete_struct_member(common_message, detail_message); + TypeObjectUtils::add_complete_struct_member(member_seq_HelloWorld, member_message); + } + CompleteStructType struct_type_HelloWorld = TypeObjectUtils::build_complete_struct_type(struct_flags_HelloWorld, header_HelloWorld, member_seq_HelloWorld); + if (eprosima::fastdds::dds::RETCODE_BAD_PARAMETER == + TypeObjectUtils::build_and_register_struct_type_object(struct_type_HelloWorld, type_name_HelloWorld.to_string())) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "HelloWorld already registered in TypeObjectRegistry for a different type."); + } + return_code_HelloWorld = + eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_identifiers( + "HelloWorld", type_ids_HelloWorld); + if (return_code_HelloWorld != eprosima::fastdds::dds::RETCODE_OK) + { + EPROSIMA_LOG_ERROR(XTYPES_TYPE_REPRESENTATION, + "HelloWorld: Given Struct TypeIdentifier unknown to TypeObjectRegistry."); + return; + } + } +} + diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.hpp b/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.hpp new file mode 100644 index 00000000..235326d5 --- /dev/null +++ b/fastdds_python_examples/HelloWorldExample/HelloWorldTypeObjectSupport.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 HelloWorldTypeObjectSupport.hpp + * Header file containing the API required to register the TypeObject representation of the described types in the IDL file + * + * This file was generated by the tool fastddsgen. + */ + +#ifndef _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ +#define _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ + + +#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_HelloWorld_type_objects(); + +#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +/** + * @brief Register HelloWorld related TypeIdentifier. + * Fully-descriptive TypeIdentifiers are directly registered. + * Hash TypeIdentifiers require to fill the TypeObject information and hash it, consequently, the TypeObject is + * indirectly registered as well. + */ +eProsima_user_DllExport void register_HelloWorld_type_identifier(); + + +#endif // DOXYGEN_SHOULD_SKIP_THIS_PUBLIC + +#endif // _FAST_DDS_GENERATED_HELLOWORLD_TYPE_OBJECT_SUPPORT_HPP_ diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldv1.cxx b/fastdds_python_examples/HelloWorldExample/HelloWorldv1.cxx deleted file mode 100644 index 90e82ea8..00000000 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldv1.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 HelloWorld.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 "HelloWorld.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 HelloWorld_max_cdr_typesize 268ULL; - - - - -HelloWorld::HelloWorld() -{ - // unsigned long m_index - m_index = 0; - // /type_d() m_message - - -} - -HelloWorld::~HelloWorld() -{ -} - -HelloWorld::HelloWorld( - const HelloWorld& x) -{ - m_index = x.m_index; - - - m_message = x.m_message; - -} - -HelloWorld::HelloWorld( - HelloWorld&& x) noexcept -{ - m_index = x.m_index; - - - m_message = std::move(x.m_message); - -} - -HelloWorld& HelloWorld::operator =( - const HelloWorld& x) -{ - m_index = x.m_index; - - - m_message = x.m_message; - - return *this; -} - -HelloWorld& HelloWorld::operator =( - HelloWorld&& x) noexcept -{ - m_index = x.m_index; - - - m_message = std::move(x.m_message); - - return *this; -} - -bool HelloWorld::operator ==( - const HelloWorld& x) const -{ - return (m_index == x.m_index && - m_message == x.m_message); -} - -bool HelloWorld::operator !=( - const HelloWorld& x) const -{ - return !(*this == x); -} - -size_t HelloWorld::getMaxCdrSerializedSize( - size_t current_alignment) -{ - static_cast(current_alignment); - return HelloWorld_max_cdr_typesize; -} - -size_t HelloWorld::getCdrSerializedSize( - const HelloWorld& data, - size_t current_alignment) -{ - (void)data; - size_t initial_alignment = current_alignment; - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4); - - - current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.message().size() + 1; - - - return current_alignment - initial_alignment; -} - - -void HelloWorld::serialize( - eprosima::fastcdr::Cdr& scdr) const -{ - scdr << m_index; - - scdr << m_message.c_str(); - -} - -void HelloWorld::deserialize( - eprosima::fastcdr::Cdr& dcdr) -{ - dcdr >> m_index; - - - - dcdr >> m_message; - - -} - - -bool HelloWorld::isKeyDefined() -{ - return false; -} - -void HelloWorld::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 HelloWorld::index( - uint32_t _index) -{ - m_index = _index; -} - -/*! - * @brief This function returns the value of member index - * @return Value of member index - */ -uint32_t HelloWorld::index() const -{ - return m_index; -} - -/*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ -uint32_t& HelloWorld::index() -{ - return m_index; -} - - -/*! - * @brief This function copies the value in member message - * @param _message New value to be copied in member message - */ -void HelloWorld::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 HelloWorld::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& HelloWorld::message() const -{ - return m_message; -} - -/*! - * @brief This function returns a reference to member message - * @return Reference to member message - */ -std::string& HelloWorld::message() -{ - return m_message; -} - - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/fastdds_python_examples/HelloWorldExample/HelloWorldv1.h b/fastdds_python_examples/HelloWorldExample/HelloWorldv1.h deleted file mode 100644 index 9f6f726e..00000000 --- a/fastdds_python_examples/HelloWorldExample/HelloWorldv1.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 HelloWorld.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_HELLOWORLD_H_ -#define _FAST_DDS_GENERATED_HELLOWORLD_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(HELLOWORLD_SOURCE) -#define HELLOWORLD_DllAPI __declspec( dllexport ) -#else -#define HELLOWORLD_DllAPI __declspec( dllimport ) -#endif // HELLOWORLD_SOURCE -#else -#define HELLOWORLD_DllAPI -#endif // EPROSIMA_USER_DLL_EXPORT -#else -#define HELLOWORLD_DllAPI -#endif // _WIN32 - -namespace eprosima { -namespace fastcdr { -class Cdr; -} // namespace fastcdr -} // namespace eprosima - - - - - -/*! - * @brief This class represents the structure HelloWorld defined by the user in the IDL file. - * @ingroup HelloWorld - */ -class HelloWorld -{ -public: - - /*! - * @brief Default constructor. - */ - eProsima_user_DllExport HelloWorld(); - - /*! - * @brief Default destructor. - */ - eProsima_user_DllExport ~HelloWorld(); - - /*! - * @brief Copy constructor. - * @param x Reference to the object HelloWorld that will be copied. - */ - eProsima_user_DllExport HelloWorld( - const HelloWorld& x); - - /*! - * @brief Move constructor. - * @param x Reference to the object HelloWorld that will be copied. - */ - eProsima_user_DllExport HelloWorld( - HelloWorld&& x) noexcept; - - /*! - * @brief Copy assignment. - * @param x Reference to the object HelloWorld that will be copied. - */ - eProsima_user_DllExport HelloWorld& operator =( - const HelloWorld& x); - - /*! - * @brief Move assignment. - * @param x Reference to the object HelloWorld that will be copied. - */ - eProsima_user_DllExport HelloWorld& operator =( - HelloWorld&& x) noexcept; - - /*! - * @brief Comparison operator. - * @param x HelloWorld object to compare. - */ - eProsima_user_DllExport bool operator ==( - const HelloWorld& x) const; - - /*! - * @brief Comparison operator. - * @param x HelloWorld object to compare. - */ - eProsima_user_DllExport bool operator !=( - const HelloWorld& x) const; - - /*! - * @brief This function sets a value in member index - * @param _index New value for member index - */ - eProsima_user_DllExport void index( - uint32_t _index); - - /*! - * @brief This function returns the value of member index - * @return Value of member index - */ - eProsima_user_DllExport uint32_t index() const; - - /*! - * @brief This function returns a reference to member index - * @return Reference to member index - */ - eProsima_user_DllExport uint32_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 HelloWorld& 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: - - uint32_t m_index; - std::string m_message; - -}; - - -#endif // _FAST_DDS_GENERATED_HELLOWORLD_H_ - - - -#endif // FASTCDR_VERSION_MAJOR == 1 diff --git a/utils/scripts/update_generated_code_from_idl.sh b/utils/scripts/update_generated_code_from_idl.sh index 4c4f25bd..e00a3bbe 100755 --- a/utils/scripts/update_generated_code_from_idl.sh +++ b/utils/scripts/update_generated_code_from_idl.sh @@ -20,8 +20,8 @@ ret_value=0 cd ./fastdds_python/test/types echo -e "Processing ${yellow}test_complete.idl test_modules.idl${textreset}" -echo "Running: fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl" -fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl +echo "Running: fastddsgen -replace -python test_complete.idl test_modules.idl" +fastddsgen -replace -python test_complete.idl test_modules.idl if [[ $? != 0 ]]; then ret_value=-1 fi @@ -31,8 +31,8 @@ if [[ $ret_value != -1 ]]; then cd "./fastdds_python_examples/HelloWorldExample" echo -e "Processing ${yellow}HelloWorld.idl${textreset}" - echo "Running: fastddsgen -cdr both -replace -python HelloWorld.idl" - fastddsgen -cdr both -replace -python HelloWorld.idl + echo "Running: fastddsgen -replace -python HelloWorld.idl" + fastddsgen -replace -python HelloWorld.idl fi if [[ $? != 0 ]]; then